build: Enable gometalinter "gosimple" check, improve build.go

This commit is contained in:
Jakob Borg authored and Jakob Borg committed 2016-12-21 14:53:45 +01:00
1 parent 47f22ff3e5
commit d41c131364
19 files changed
+108 -130

No files matched your search

+1 -1
View File
@@ -51,7 +51,7 @@ func NewLocal(id protocol.DeviceID, addr string, addrList AddressLister) (Finder
Supervisor: suture.NewSimple("local"),
myID: id,
addrList: addrList,
localBcastTick: time.Tick(BroadcastInterval),
localBcastTick: time.NewTicker(BroadcastInterval).C,
forcedBcastTick: make(chan time.Time),
localBcastStart: time.Now(),
cache: newCache(),