diff --git a/Taskfile.yaml b/Taskfile.yaml index 827db449c673fd545cbb042b3bb407273d8b2872..e2f59da4161a904051601ef5fc5e6176fe75910b 100644 --- a/Taskfile.yaml +++ b/Taskfile.yaml @@ -21,7 +21,7 @@ tasks: dev: desc: Run with profiling enabled env: - OPENCODE_PROFILE: true + CRUSH_PROFILE: true cmds: - go run . diff --git a/main.go b/main.go index 0e95a17f366793f747e161942594710a4f4cdc48..031ce3c9ed037cd5b34aa521f62bc9ca03b6ac5d 100644 --- a/main.go +++ b/main.go @@ -15,7 +15,7 @@ func main() { logging.ErrorPersist("Application terminated due to unhandled panic") }) - if os.Getenv("OPENCODE_PROFILE") != "" { + if os.Getenv("CRUSH_PROFILE") != "" { go func() { logging.Info("Serving pprof at localhost:6060") if httpErr := http.ListenAndServe("localhost:6060", nil); httpErr != nil {