Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
container.runContainer(): call the cancel func
Switch from x/net/context to context made "go vet" see the previously unseen error: > cli/command/container/run.go:159::error: the cancelFun function is not > used on all paths (possible context leak) (vet) > cli/command/container/run.go:164::error: this return statement may be > reached without using the cancelFun var defined on line 159 (vet) As the cancelFun is only used for an attached container, use context.WithCancel conditionally. Signed-off-by: Kir Kolyshkin <kolyshkin@gmail.com>
- Loading branch information