Skip to content

Commit

Permalink
Fix compilation errors of SerializedResponse (#2722)
Browse files Browse the repository at this point in the history
  • Loading branch information
chenBright committed Aug 8, 2024
1 parent eb31758 commit c709c96
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/brpc/serialized_response.h
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ class SerializedResponse : public ::google::protobuf::Message {
void Clear() override;
bool IsInitialized() const override;
int ByteSize() const;
int GetCachedSize() const override { return (int)_serialized.size(); }
int GetCachedSize() const PB_422_OVERRIDE { return (int)_serialized.size(); }
butil::IOBuf& serialized_data() { return _serialized; }
const butil::IOBuf& serialized_data() const { return _serialized; }

Expand All @@ -71,7 +71,7 @@ class SerializedResponse : public ::google::protobuf::Message {
void MergeFrom(const SerializedResponse& from);
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const override;
void SetCachedSize(int size) const PB_422_OVERRIDE;

private:
butil::IOBuf _serialized;
Expand Down

0 comments on commit c709c96

Please sign in to comment.