delete new context
This commit is contained in:
parent
de2637b4fa
commit
e340996919
@ -196,8 +196,6 @@ func (pmgr *PeerMgr) doExpand(ctx context.Context) {
|
|||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
go func(bsp peer.AddrInfo) {
|
go func(bsp peer.AddrInfo) {
|
||||||
defer wg.Done()
|
defer wg.Done()
|
||||||
ctx, cancel := context.WithTimeout(ctx, 15*time.Second)
|
|
||||||
defer cancel()
|
|
||||||
if err := pmgr.h.Connect(ctx, bsp); err != nil {
|
if err := pmgr.h.Connect(ctx, bsp); err != nil {
|
||||||
log.Warnf("failed to connect to bootstrap peer: %s", err)
|
log.Warnf("failed to connect to bootstrap peer: %s", err)
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user