Remove unnecessary locking during heartbeating (#7877)
This commit is contained in:
parent
afa9510835
commit
5cb6600e83
|
@ -104,9 +104,7 @@ type forwardingClient struct {
|
|||
func (c *forwardingClient) startHeartbeat() {
|
||||
go func() {
|
||||
tick := func() {
|
||||
c.core.stateLock.RLock()
|
||||
clusterAddr := c.core.ClusterAddr()
|
||||
c.core.stateLock.RUnlock()
|
||||
|
||||
req := &EchoRequest{
|
||||
Message: "ping",
|
||||
|
|
Loading…
Reference in New Issue