Taskfile.yaml 🔗
@@ -21,7 +21,7 @@ tasks:
dev:
desc: Run with profiling enabled
env:
- OPENCODE_PROFILE: true
+ CRUSH_PROFILE: true
cmds:
- go run .
Carlos Alexandro Becker created
Taskfile.yaml | 2 +-
main.go | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
@@ -21,7 +21,7 @@ tasks:
dev:
desc: Run with profiling enabled
env:
- OPENCODE_PROFILE: true
+ CRUSH_PROFILE: true
cmds:
- go run .
@@ -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 {