Update downloader.go

This commit is contained in:
songzhibin97 2024-03-19 09:00:36 +08:00
parent 22bf33dc5c
commit 244fe39258

View file

@ -1019,9 +1019,9 @@ func (d *Downloader) fetchHeaders(p *peerConnection, from uint64, head uint64) e
pivoting = false // Whether the next request is pivot verification pivoting = false // Whether the next request is pivot verification
ancestor = from ancestor = from
mode = d.getMode() mode = d.getMode()
fsHeaderContCheckTimer = time.NewTimer(fsHeaderContCheck)
) )
fsHeaderContCheckTimer := time.NewTimer(fsHeaderContCheck)
defer fsHeaderContCheckTimer.Stop() defer fsHeaderContCheckTimer.Stop()
for { for {