Use the standard context library #1248
Annotations
5 errors
golangci-lint:
main.go#L510
lostcancel: the cancel function returned by context.WithTimeout should be called, not discarded, to avoid a context leak (govet)
|
golangci-lint:
pkg/subnet/etcd/registry_test.go#L108
lostcancel: the cancel function returned by context.WithCancel should be called, not discarded, to avoid a context leak (govet)
|
golangci-lint:
pkg/subnet/etcd/subnet_test.go#L198
lostcancel: the cancel function returned by context.WithCancel should be called, not discarded, to avoid a context leak (govet)
|
golangci-lint:
pkg/subnet/etcd/subnet_test.go#L265
lostcancel: the cancel function returned by context.WithCancel should be called, not discarded, to avoid a context leak (govet)
|
golangci-lint
issues found
|
Loading