This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/master by this push:
new 23cccf5 Fix ReferenceCountManagedChannel#incrementAndGetCount return
type (#7794) (#7795)
23cccf5 is described below
commit 23cccf570cc7908b23917a052471f974c5162837
Author: passer <[email protected]>
AuthorDate: Wed May 19 22:19:09 2021 +0800
Fix ReferenceCountManagedChannel#incrementAndGetCount return type (#7794)
(#7795)
---
.../apache/dubbo/rpc/protocol/grpc/ReferenceCountManagedChannel.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/dubbo-rpc/dubbo-rpc-grpc/src/main/java/org/apache/dubbo/rpc/protocol/grpc/ReferenceCountManagedChannel.java
b/dubbo-rpc/dubbo-rpc-grpc/src/main/java/org/apache/dubbo/rpc/protocol/grpc/ReferenceCountManagedChannel.java
index 3b46f1e..8278ba4 100644
---
a/dubbo-rpc/dubbo-rpc-grpc/src/main/java/org/apache/dubbo/rpc/protocol/grpc/ReferenceCountManagedChannel.java
+++
b/dubbo-rpc/dubbo-rpc-grpc/src/main/java/org/apache/dubbo/rpc/protocol/grpc/ReferenceCountManagedChannel.java
@@ -40,8 +40,8 @@ public class ReferenceCountManagedChannel extends
ManagedChannel {
/**
* The reference count of current ExchangeClient, connection will be
closed if all invokers destroyed.
*/
- public void incrementAndGetCount() {
- referenceCount.incrementAndGet();
+ public int incrementAndGetCount() {
+ return referenceCount.incrementAndGet();
}
@Override