diff options
author | Wenbiao Zheng <delweng@gmail.com> | 2018-10-24 07:27:49 +0800 |
---|---|---|
committer | Felix Lange <fjl@users.noreply.github.com> | 2018-10-24 07:27:49 +0800 |
commit | 68109336405a36e3c3fdcab6a87e8bc024a44a49 (patch) | |
tree | e0a6a52f3b72d31e8123d7c932fe34de7d35bc01 /eth | |
parent | 7f22b59f87cfda85a14eed6481da68e3dfba44a1 (diff) | |
download | dexon-68109336405a36e3c3fdcab6a87e8bc024a44a49.tar.gz dexon-68109336405a36e3c3fdcab6a87e8bc024a44a49.tar.zst dexon-68109336405a36e3c3fdcab6a87e8bc024a44a49.zip |
eth/downloader: SetBlocksIdle is not used (#17962)
__
<(o )___
( ._> /
`---'
Diffstat (limited to 'eth')
-rw-r--r-- | eth/downloader/peer.go | 7 |
1 files changed, 0 insertions, 7 deletions
diff --git a/eth/downloader/peer.go b/eth/downloader/peer.go index 428a60f8a..60f86d0e1 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. |