This is an automated email from the ASF dual-hosted git repository.
fuyou pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/rocketmq-clients.git
The following commit(s) were added to refs/heads/master by this push:
new bf3ce7d5 fix ErrRpcStatus.GetCode() stack overflow (#352)
bf3ce7d5 is described below
commit bf3ce7d5ca5c41589f76dedd611b176b05239f53
Author: guyinyou <[email protected]>
AuthorDate: Mon Feb 6 11:09:53 2023 +0800
fix ErrRpcStatus.GetCode() stack overflow (#352)
Co-authored-by: guyinyou <[email protected]>
---
golang/error.go | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/golang/error.go b/golang/error.go
index 1105ea69..06fa590f 100644
--- a/golang/error.go
+++ b/golang/error.go
@@ -30,7 +30,7 @@ type ErrRpcStatus struct {
}
func (err *ErrRpcStatus) GetCode() int32 {
- return err.GetCode()
+ return err.Code
}
func (err *ErrRpcStatus) GetMessage() string {