lntest: fix linter stylecheck and containedctx

This commit is contained in:
yyforyongyu committed 2023-02-24 01:35:16 +08:00
1 parent 0c50d4379f
commit 28744d89c7
5 files changed
+30 -29

No files matched your search

+2 -1
View File
@@ -42,7 +42,8 @@ type HarnessMiner struct {
// runCtx is a context with cancel method. It's used to signal when the
// node needs to quit, and used as the parent context when spawning
runCtx context.Context
// children contexts for RPC requests.
runCtx context.Context //nolint:containedctx
cancel context.CancelFunc
// logPath is the directory path of the miner's logs.