Skip to content

Find, verify, and analyze leaked credentials

move cleanup to run (#2245)

ahrav328a3f141ffd
diff --git a/main.go b/main.go
index 8b1859d32..5298be457 100644
--- a/main.go
+++ b/main.go
@@ -216,14 +216,12 @@ func main() {
if err != nil {
logFatal(err, "error occurred with trufflehog updater 🐷")
}
-
- ctx := context.Background()
-
- go cleantemp.RunCleanupLoop(ctx)
}
func run(state overseer.State) {
ctx := context.Background()
+ go cleantemp.RunCleanupLoop(ctx)
+
logger := ctx.Logger()
logFatal := logFatalFunc(logger)