fix
This commit is contained in:
parent
9a043e39a0
commit
45885a59b3
@ -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) {
|
func (t *TestPool) Dial(ctx context.Context, id string) (peer.Peer, error) {
|
||||||
t.mu.Lock()
|
|
||||||
defer t.mu.Unlock()
|
|
||||||
return t.Get(ctx, id)
|
return t.Get(ctx, id)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user