delete new context

This commit is contained in:
少爷 2020-11-10 17:40:48 +08:00
parent de2637b4fa
commit e340996919

View File

@ -196,8 +196,6 @@ func (pmgr *PeerMgr) doExpand(ctx context.Context) {
wg.Add(1)
go func(bsp peer.AddrInfo) {
defer wg.Done()
ctx, cancel := context.WithTimeout(ctx, 15*time.Second)
defer cancel()
if err := pmgr.h.Connect(ctx, bsp); err != nil {
log.Warnf("failed to connect to bootstrap peer: %s", err)
}