Skip to content

Commit

Permalink
Update rpc_client.go
Browse files Browse the repository at this point in the history
  • Loading branch information
tclxjing8-li authored Jan 24, 2025
1 parent 0dfd3a6 commit 8743556
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions common/remote/rpc/rpc_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ type RpcClient struct {
mux *sync.Mutex
clientAbilities rpc_request.ClientAbilities
Tenant string
ReconnectCallbackListen func()
}

type ServerRequestHandlerMapping struct {
Expand Down Expand Up @@ -448,6 +449,7 @@ func (r *RpcClient) reconnect(serverInfo ServerInfo, onRequestFail bool) {
r.currentConnection = connectionNew
atomic.StoreInt32((*int32)(&r.rpcClientStatus), (int32)(RUNNING))
r.notifyConnectionChange(CONNECTED)
r.ReconnectCallbackListen()
return
}
if r.isShutdown() {
Expand Down

0 comments on commit 8743556

Please sign in to comment.