mirror of
https://github.com/Rain-kl/OpenFlare.git
synced 2026-10-07 16:16:37 +08:00
autoresearch iter 27: drop one dead contextcheck suppression, document the other
This commit is contained in:
+2
-2
@@ -583,9 +583,9 @@ func (a *App) Stop(ctx ...context.Context) error {
|
||||
}
|
||||
|
||||
// Run starts the application and blocks until an OS signal (SIGINT, SIGTERM) or context cancellation is received,
|
||||
// then executes graceful shutdown.
|
||||
// then executes graceful shutdown. It forwards a sigCtx derived from the caller's context to Start.
|
||||
//
|
||||
//nolint:contextcheck // Run forwards a sigCtx derived from the caller's context to Start; the rule cannot follow the variadic parameter
|
||||
//nolint:contextcheck // the caller's ctx does reach Start via sigCtx; the rule cannot follow Run's variadic context parameter
|
||||
func (a *App) Run(ctx ...context.Context) error {
|
||||
var parent context.Context
|
||||
switch {
|
||||
|
||||
Reference in New Issue
Block a user