diff options
author | williambannas <wrschwartz@wpi.edu> | 2018-06-14 18:14:52 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-06-14 18:14:52 +0800 |
commit | 9402f965977620de0dcd968ad6943f66a80bcc5d (patch) | |
tree | b3c6fc4a3aed4299117ff1e0aa83a84eff17cc70 /eth/downloader/downloader.go | |
parent | d0fd8d6fc29ec859650adf30718e2b06786e854f (diff) | |
download | go-tangerine-9402f965977620de0dcd968ad6943f66a80bcc5d.tar go-tangerine-9402f965977620de0dcd968ad6943f66a80bcc5d.tar.gz go-tangerine-9402f965977620de0dcd968ad6943f66a80bcc5d.tar.bz2 go-tangerine-9402f965977620de0dcd968ad6943f66a80bcc5d.tar.lz go-tangerine-9402f965977620de0dcd968ad6943f66a80bcc5d.tar.xz go-tangerine-9402f965977620de0dcd968ad6943f66a80bcc5d.tar.zst go-tangerine-9402f965977620de0dcd968ad6943f66a80bcc5d.zip |
eth: conform better to the golint standards (#16783)
* eth: made changes to conform better to the golint standards
* eth: fix comment nit
Diffstat (limited to 'eth/downloader/downloader.go')
-rw-r--r-- | eth/downloader/downloader.go | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/eth/downloader/downloader.go b/eth/downloader/downloader.go index 51c593601..fbde9c6ca 100644 --- a/eth/downloader/downloader.go +++ b/eth/downloader/downloader.go @@ -900,7 +900,7 @@ func (d *Downloader) fillHeaderSkeleton(from uint64, skeleton []*types.Header) ( var ( deliver = func(packet dataPack) (int, error) { pack := packet.(*headerPack) - return d.queue.DeliverHeaders(pack.peerId, pack.headers, d.headerProcCh) + return d.queue.DeliverHeaders(pack.peerID, pack.headers, d.headerProcCh) } expire = func() map[string]int { return d.queue.ExpireHeaders(d.requestTTL()) } throttle = func() bool { return false } @@ -930,7 +930,7 @@ func (d *Downloader) fetchBodies(from uint64) error { var ( deliver = func(packet dataPack) (int, error) { pack := packet.(*bodyPack) - return d.queue.DeliverBodies(pack.peerId, pack.transactions, pack.uncles) + return d.queue.DeliverBodies(pack.peerID, pack.transactions, pack.uncles) } expire = func() map[string]int { return d.queue.ExpireBodies(d.requestTTL()) } fetch = func(p *peerConnection, req *fetchRequest) error { return p.FetchBodies(req) } @@ -954,7 +954,7 @@ func (d *Downloader) fetchReceipts(from uint64) error { var ( deliver = func(packet dataPack) (int, error) { pack := packet.(*receiptPack) - return d.queue.DeliverReceipts(pack.peerId, pack.receipts) + return d.queue.DeliverReceipts(pack.peerID, pack.receipts) } expire = func() map[string]int { return d.queue.ExpireReceipts(d.requestTTL()) } fetch = func(p *peerConnection, req *fetchRequest) error { return p.FetchReceipts(req) } |