travis: Update to go 1.8 and 1.9.

Also, make the gosimple linter happy while here.
This commit is contained in:
Dave Collins 2017-08-25 13:45:54 -05:00
parent 3cb87afa2f
commit 9bd7bcfff6
No known key found for this signature in database
GPG key ID: B8904D9D9C93D1F2
3 changed files with 4 additions and 4 deletions

View file

@ -1,7 +1,7 @@
language: go language: go
go: go:
- 1.6.x - 1.8.x
- 1.7.x - 1.9.x
sudo: false sudo: false
install: install:
- GLIDE_TAG=v0.12.3 - GLIDE_TAG=v0.12.3

View file

@ -35,7 +35,7 @@ which are both under active development.
## Requirements ## Requirements
[Go](http://golang.org) 1.6 or newer. [Go](http://golang.org) 1.8 or newer.
## Installation ## Installation

View file

@ -1202,7 +1202,7 @@ func (s *server) handleAddPeerMsg(state *peerState, sp *serverPeer) bool {
if banEnd, ok := state.banned[host]; ok { if banEnd, ok := state.banned[host]; ok {
if time.Now().Before(banEnd) { if time.Now().Before(banEnd) {
srvrLog.Debugf("Peer %s is banned for another %v - disconnecting", srvrLog.Debugf("Peer %s is banned for another %v - disconnecting",
host, banEnd.Sub(time.Now())) host, time.Until(banEnd))
sp.Disconnect() sp.Disconnect()
return false return false
} }