From 45885a59b34e55d9e0d0cc06adeb7acc7c1c888d Mon Sep 17 00:00:00 2001 From: Sergey Cherepanov Date: Thu, 2 Feb 2023 21:21:25 +0300 Subject: [PATCH] fix --- net/rpc/rpctest/pool.go | 2 -- 1 file changed, 2 deletions(-) diff --git a/net/rpc/rpctest/pool.go b/net/rpc/rpctest/pool.go index 4824d421..7fdbdda4 100644 --- a/net/rpc/rpctest/pool.go +++ b/net/rpc/rpctest/pool.go @@ -46,8 +46,6 @@ func (t *TestPool) Get(ctx context.Context, id string) (peer.Peer, error) { } func (t *TestPool) Dial(ctx context.Context, id string) (peer.Peer, error) { - t.mu.Lock() - defer t.mu.Unlock() return t.Get(ctx, id) }