on main help sign in
fix: crush
25c6007Carlos Alexandro Becker
Taskfile.yaml+1−1
@@ -21,7 +21,7 @@ tasks:
21 dev:
21 dev:
22 desc: Run with profiling enabled
22 desc: Run with profiling enabled
23 env:
23 env:
24− OPENCODE_PROFILE: true
24+ CRUSH_PROFILE: true
25 cmds:
25 cmds:
26 - go run .
26 - go run .
27
27
main.go+1−1
@@ -15,7 +15,7 @@ func main() {
15 logging.ErrorPersist("Application terminated due to unhandled panic")
15 logging.ErrorPersist("Application terminated due to unhandled panic")
16 })
16 })
17
17
18− if os.Getenv("OPENCODE_PROFILE") != "" {
18+ if os.Getenv("CRUSH_PROFILE") != "" {
19 go func() {
19 go func() {
20 logging.Info("Serving pprof at localhost:6060")
20 logging.Info("Serving pprof at localhost:6060")
21 if httpErr := http.ListenAndServe("localhost:6060", nil); httpErr != nil {
21 if httpErr := http.ListenAndServe("localhost:6060", nil); httpErr != nil {