Remove unnecessary locking during heartbeating (#7877)

This commit is contained in:
Brian Kassouf 2019-11-20 17:24:49 -08:00 committed by GitHub
parent afa9510835
commit 5cb6600e83
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 2 deletions

View File

@ -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",