forked from cerc-io/plugeth
Merge pull request #7 from sdboyer/vet-fixes
Fix a couple errors from go vet
This commit is contained in:
commit
1e241e3a61
3
peer.go
3
peer.go
@ -285,7 +285,6 @@ func (p *Peer) HandleInbound() {
|
|||||||
p.lastPong = time.Now().Unix()
|
p.lastPong = time.Now().Unix()
|
||||||
case ethwire.MsgBlockTy:
|
case ethwire.MsgBlockTy:
|
||||||
// Get all blocks and process them
|
// Get all blocks and process them
|
||||||
msg.Data = msg.Data
|
|
||||||
var block, lastBlock *ethchain.Block
|
var block, lastBlock *ethchain.Block
|
||||||
var err error
|
var err error
|
||||||
for i := msg.Data.Len() - 1; i >= 0; i-- {
|
for i := msg.Data.Len() - 1; i >= 0; i-- {
|
||||||
@ -438,7 +437,7 @@ func (p *Peer) Start() {
|
|||||||
|
|
||||||
err := p.pushHandshake()
|
err := p.pushHandshake()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
log.Printf("Peer can't send outbound version ack", err)
|
log.Println("Peer can't send outbound version ack", err)
|
||||||
|
|
||||||
p.Stop()
|
p.Stop()
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user