storj/pkg
Egon Elbre fe3decc42f
all: fix govet warnings (#255)
Fixes go1.11 vet warnings.

Cancel on WithTimeout must always be called to avoid memory leak:

pkg/provider/provider.go:73: the cancel function returned by context.WithTimeout should be called, not discarded, to avoid a context leak

Range over non-copyable things:

pkg/pool/connection_pool_test.go:32: range var v copies lock: struct{pool pool.ConnectionPool; key string; expected pool.TestFoo; expectedError error} contains pool.ConnectionPool contains sync.RWMutex
pkg/pool/connection_pool_test.go:56: range var v copies lock: struct{pool pool.ConnectionPool; key string; value pool.TestFoo; expected pool.TestFoo; expectedError error} contains pool.ConnectionPool contains sync.RWMutex
pkg/pool/connection_pool_test.go:83: range var v copies lock: struct{pool pool.ConnectionPool; key string; value pool.TestFoo; expected interface{}; expectedError error} contains pool.ConnectionPool contains sync.RWMutex

zeebo/errs package always requires formatting directives:

pkg/peertls/peertls.go:50: Class.New call has arguments but no formatting directives
pkg/peertls/utils.go:47: Class.New call has arguments but no formatting directives
pkg/peertls/utils.go:87: Class.New call has arguments but no formatting directives
pkg/overlay/cache.go:94: Class.New call has arguments but no formatting directives
pkg/provider/certificate_authority.go:98: New call has arguments but no formatting directives
pkg/provider/identity.go:96: New call has arguments but no formatting directives
pkg/provider/utils.go:124: New call needs 1 arg but has 2 args
pkg/provider/utils.go:136: New call needs 1 arg but has 2 args
storage/redis/client.go:44: Class.New call has arguments but no formatting directives
storage/redis/client.go:64: Class.New call has arguments but no formatting directives
storage/redis/client.go:75: Class.New call has arguments but no formatting directives
storage/redis/client.go:80: Class.New call has arguments but no formatting directives
storage/redis/client.go:92: Class.New call has arguments but no formatting directives
storage/redis/client.go:96: Class.New call has arguments but no formatting directives
storage/redis/client.go:102: Class.New call has arguments but no formatting directives
storage/redis/client.go:126: Class.New call has arguments but no formatting directives
2018-08-22 09:39:57 +03:00
..
cfgstruct pkg/provider: with pkg/provider merged, make a single heavy client binary, gateway binary, and deprecate old services (#165) 2018-07-26 08:21:35 -06:00
dht implements connection success and fail on kad routing table (#249) 2018-08-21 14:44:42 -04:00
eestream Node Identity (#193) 2018-08-13 10:39:45 +02:00
kademlia implements connection success and fail on kad routing table (#249) 2018-08-21 14:44:42 -04:00
miniogw Mock overlay move (#245) 2018-08-20 14:24:11 -04:00
node Routing Table Replacement Cache (#229) 2018-08-17 15:11:46 -04:00
overlay all: fix govet warnings (#255) 2018-08-22 09:39:57 +03:00
paths adds Bucket Store (#213) 2018-08-16 10:32:28 -04:00
peertls all: fix govet warnings (#255) 2018-08-22 09:39:57 +03:00
piecestore piecestore: only check ttl db every hour instead of every 300 nanoseconds (#250) 2018-08-20 15:47:24 -04:00
pointerdb Mock overlay move (#245) 2018-08-20 14:24:11 -04:00
pool all: fix govet warnings (#255) 2018-08-22 09:39:57 +03:00
process Consolidate command configuration and setup (#221) 2018-08-13 09:07:05 -06:00
provider all: fix govet warnings (#255) 2018-08-22 09:39:57 +03:00
ranger Node Identity (#193) 2018-08-13 10:39:45 +02:00
statdb Kademlia Routing Table (#164) 2018-07-30 15:25:18 -04:00
storage Make PSClient a Closer, so it can be closed with utils.LogClose() (#247) 2018-08-20 18:11:54 +03:00
telemetry added assertion for unused errors (#152) 2018-07-27 11:01:21 -06:00
transport node-node communication (#145) 2018-07-19 10:48:08 -04:00
utils Node Identity (#193) 2018-08-13 10:39:45 +02:00