From 82cba61bad5a7ea30fb4a72f95263eea8bd2f771 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Wed, 2 Nov 2016 18:50:17 -0500 Subject: [PATCH] bmgr: Remove unused struct fields. Found by structcheck. --- blockmanager.go | 27 ++++++++++++--------------- 1 file changed, 12 insertions(+), 15 deletions(-) diff --git a/blockmanager.go b/blockmanager.go index d74fd975..d46f7737 100644 --- a/blockmanager.go +++ b/blockmanager.go @@ -136,21 +136,18 @@ type headerNode struct { // blockManager provides a concurrency safe block manager for handling all // incoming blocks. type blockManager struct { - server *server - started int32 - shutdown int32 - chain *blockchain.BlockChain - rejectedTxns map[chainhash.Hash]struct{} - requestedTxns map[chainhash.Hash]struct{} - requestedBlocks map[chainhash.Hash]struct{} - progressLogger *blockProgressLogger - receivedLogBlocks int64 - receivedLogTx int64 - processingReqs bool - syncPeer *serverPeer - msgChan chan interface{} - wg sync.WaitGroup - quit chan struct{} + server *server + started int32 + shutdown int32 + chain *blockchain.BlockChain + rejectedTxns map[chainhash.Hash]struct{} + requestedTxns map[chainhash.Hash]struct{} + requestedBlocks map[chainhash.Hash]struct{} + progressLogger *blockProgressLogger + syncPeer *serverPeer + msgChan chan interface{} + wg sync.WaitGroup + quit chan struct{} // The following fields are used for headers-first mode. headersFirstMode bool