Skip to content

Commit

Permalink
update some
Browse files Browse the repository at this point in the history
  • Loading branch information
inhere committed Aug 13, 2020
1 parent 5dd1250 commit f28ae60
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion _examples/pprof-cli.go
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import (
)

// run serve:
// go run ./_examples/pprof.go
// go run ./_examples/pprof-cli.go
// see prof on cli:
// go tool pprof rux_prof_data.prof
// see prof on web:
Expand Down Expand Up @@ -48,4 +48,6 @@ func main() {
// r.Match("get", "/users/23")
// fmt.Println(ret)
}

fmt.Println("see prof on web:\n go tool pprof -http=:8080 rux_prof_data.prof")
}
2 changes: 1 addition & 1 deletion handlers/middlewares.go
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ func PanicsHandler() rux.HandlerFunc {
}

// Timeout is a middleware for handle logic.
// method is refer from "github.com/go-chi/chi/middleware"
// the method is refer from "github.com/go-chi/chi/middleware"
//
// It's required that you select the ctx.Done() channel to check for the signal
// if the context has reached its deadline and return, otherwise the timeout
Expand Down

0 comments on commit f28ae60

Please sign in to comment.