diff --git a/main.go b/main.go index 2b27b90..f5a9b2b 100644 --- a/main.go +++ b/main.go @@ -14,10 +14,6 @@ import ( "github.com/siteworxpro/top-wallpaper/redis" ) -type contextKey string - -const ContextKeyLogger contextKey = "logger" - func main() { ctx, fn := context.WithCancel(context.Background()) @@ -61,7 +57,8 @@ func main() { } ctx = redis.WithContext(ctx, rc) - ctx = context.WithValue(ctx, ContextKeyLogger, e.Logger) + + ctx = context.WithValue(ctx, "logger", e.Logger) //nolint:staticcheck go reddit.Fetch(ctx)