This is an automated email from the ASF dual-hosted git repository.
wwbmmm pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/brpc.git
The following commit(s) were added to refs/heads/master by this push:
new c709c96a Fix compilation errors of SerializedResponse (#2722)
c709c96a is described below
commit c709c96a61e85998d177e210314f58581e61ade3
Author: Bright Chen <[email protected]>
AuthorDate: Thu Aug 8 18:16:07 2024 +0800
Fix compilation errors of SerializedResponse (#2722)
---
src/brpc/serialized_response.h | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/brpc/serialized_response.h b/src/brpc/serialized_response.h
index 4e7d86e7..3b33cb24 100644
--- a/src/brpc/serialized_response.h
+++ b/src/brpc/serialized_response.h
@@ -53,7 +53,7 @@ public:
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; }
@@ -71,7 +71,7 @@ private:
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;
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]