summaryrefslogtreecommitdiffstats
path: root/modules/doctor/doctor.go
diff options
context:
space:
mode:
Diffstat (limited to 'modules/doctor/doctor.go')
-rw-r--r--modules/doctor/doctor.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/doctor/doctor.go b/modules/doctor/doctor.go
index 20a32f1865..c8975a788e 100644
--- a/modules/doctor/doctor.go
+++ b/modules/doctor/doctor.go
@@ -20,7 +20,7 @@ type Check struct {
Title string
Name string
IsDefault bool
- Run func(logger log.Logger, autofix bool) error
+ Run func(ctx context.Context, logger log.Logger, autofix bool) error
AbortIfFailed bool
SkipDatabaseInitialization bool
Priority int
@@ -77,7 +77,7 @@ func RunChecks(ctx context.Context, logger log.Logger, autofix bool, checks []*C
}
logger.Info("[%d] %s", log.NewColoredIDValue(i+1), check.Title)
logger.Flush()
- if err := check.Run(&wrappedLogger, autofix); err != nil {
+ if err := check.Run(ctx, &wrappedLogger, autofix); err != nil {
if check.AbortIfFailed {
logger.Critical("FAIL")
return err