From 5cb6600e83bbd4412a12812d6accee6fc0e58009 Mon Sep 17 00:00:00 2001 From: Brian Kassouf Date: Wed, 20 Nov 2019 17:24:49 -0800 Subject: [PATCH] Remove unnecessary locking during heartbeating (#7877) --- vault/request_forwarding_rpc.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/vault/request_forwarding_rpc.go b/vault/request_forwarding_rpc.go index 4812fb436..4fa8cfde6 100644 --- a/vault/request_forwarding_rpc.go +++ b/vault/request_forwarding_rpc.go @@ -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",