mirror of
https://gitlab.com/pulsechaincom/prysm-pulse.git
synced 2024-12-22 03:30:35 +00:00
Prevent Canceling Goroutines in Validator Client (#2324)
* do not cancel assignments goroutines * exclude rule * disable lostcancel for now
This commit is contained in:
parent
a5da9f2dd6
commit
ccf7beb5f7
@ -68,7 +68,7 @@ nogo(
|
||||
"@org_golang_x_tools//go/analysis/passes/pkgfact:go_tool_library",
|
||||
"@org_golang_x_tools//go/analysis/passes/nilness:go_tool_library",
|
||||
"@org_golang_x_tools//go/analysis/passes/nilfunc:go_tool_library",
|
||||
"@org_golang_x_tools//go/analysis/passes/lostcancel:go_tool_library",
|
||||
# "@org_golang_x_tools//go/analysis/passes/lostcancel:go_tool_library",
|
||||
"@org_golang_x_tools//go/analysis/passes/loopclosure:go_tool_library",
|
||||
"@org_golang_x_tools//go/analysis/passes/httpresponse:go_tool_library",
|
||||
"@org_golang_x_tools//go/analysis/passes/findcall:go_tool_library",
|
||||
|
@ -10,6 +10,11 @@
|
||||
"external/*": "Unreachable third party code"
|
||||
}
|
||||
},
|
||||
"lostcancel": {
|
||||
"exclude_files": {
|
||||
"validator/client/runner.go": "No need to cancel right when goroutines begin"
|
||||
}
|
||||
},
|
||||
"nilness": {
|
||||
"exclude_files": {
|
||||
"external/*": "Third party code"
|
||||
@ -44,6 +49,5 @@
|
||||
"exclude_files": {
|
||||
"external/*": "Third party code"
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
@ -100,7 +100,6 @@ func run(ctx context.Context, v Validator) {
|
||||
|
||||
}(role, id)
|
||||
}
|
||||
cancel()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user