Skip to content

Commit

Permalink
fix: cache not expired after RSocket disposed (#866)
Browse files Browse the repository at this point in the history
  • Loading branch information
zhou-hao authored Dec 4, 2024
1 parent a4d844d commit 9135d84
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ public ClientChannel create(ServiceReference serviceReference) {
key ->
getCredentials(serviceReference)
.flatMap(creds -> connect(key, creds, monoMap))
.cache()
.cacheInvalidateIf(RSocket::isDisposed)
.doOnError(ex -> monoMap.remove(key)));
return new RSocketClientChannel(mono, new ServiceMessageCodec(headersCodec, dataCodecs));
}
Expand Down

0 comments on commit 9135d84

Please sign in to comment.