From 68109336405a36e3c3fdcab6a87e8bc024a44a49 Mon Sep 17 00:00:00 2001 From: Wenbiao Zheng Date: Tue, 23 Oct 2018 18:27:49 -0500 Subject: [PATCH] eth/downloader: SetBlocksIdle is not used (#17962) __ <(o )___ ( ._> / `---' --- eth/downloader/peer.go | 7 ------- 1 file changed, 7 deletions(-) diff --git a/eth/downloader/peer.go b/eth/downloader/peer.go index 428a60f8a1..60f86d0e14 100644 --- a/eth/downloader/peer.go +++ b/eth/downloader/peer.go @@ -229,13 +229,6 @@ func (p *peerConnection) SetHeadersIdle(delivered int) { p.setIdle(p.headerStarted, delivered, &p.headerThroughput, &p.headerIdle) } -// SetBlocksIdle sets the peer to idle, allowing it to execute new block retrieval -// requests. Its estimated block retrieval throughput is updated with that measured -// just now. -func (p *peerConnection) SetBlocksIdle(delivered int) { - p.setIdle(p.blockStarted, delivered, &p.blockThroughput, &p.blockIdle) -} - // SetBodiesIdle sets the peer to idle, allowing it to execute block body retrieval // requests. Its estimated body retrieval throughput is updated with that measured // just now.