You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@dubbo.apache.org by al...@apache.org on 2021/05/23 13:14:16 UTC
[dubbo] branch 3.0 updated: Fix
ReferenceCountManagedChannel#incrementAndGetCount return type (#7838)
This is an automated email from the ASF dual-hosted git repository.
albumenj pushed a commit to branch 3.0
in repository https://gitbox.apache.org/repos/asf/dubbo.git
The following commit(s) were added to refs/heads/3.0 by this push:
new 30b311a Fix ReferenceCountManagedChannel#incrementAndGetCount return type (#7838)
30b311a is described below
commit 30b311a0c372ef5b835827711b38b91c0a27852a
Author: passer <wh...@gmail.com>
AuthorDate: Sun May 23 21:14:04 2021 +0800
Fix ReferenceCountManagedChannel#incrementAndGetCount return type (#7838)
---
.../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