Skip to content

Commit

Permalink
fix nacos-group#736, [掉线重连可能导致服务丢失](nacos-group#736)
Browse files Browse the repository at this point in the history
  • Loading branch information
yangchun2 committed Mar 29, 2024
1 parent 6dd8997 commit a4434cc
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions common/remote/rpc/rpc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -310,6 +310,7 @@ func (r *RpcClient) reconnect(serverInfo ServerInfo, onRequestFail bool) {
if onRequestFail && r.sendHealthCheck() {
logger.Infof("%s server check success, currentServer is %+v", r.name, r.currentConnection.getServerInfo())
atomic.StoreInt32((*int32)(&r.rpcClientStatus), (int32)(RUNNING))
r.notifyConnectionChange(CONNECTED)
return
}
var (
Expand Down

0 comments on commit a4434cc

Please sign in to comment.