Skip to content

Commit

Permalink
fix #736, [掉线重连可能导致服务丢失](#736) (#737)
Browse files Browse the repository at this point in the history
Co-authored-by: yangchun2 <yangchun2@shopline.com>
  • Loading branch information
ijustyce and yangchun2 authored Jun 13, 2024
1 parent b2c297e commit a0c848a
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 @@ -413,6 +413,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 a0c848a

Please sign in to comment.