summaryrefslogtreecommitdiffstats
path: root/modules/pprof
diff options
context:
space:
mode:
authorJohn Olheiser <john.olheiser@gmail.com>2022-08-30 21:15:45 -0500
committerGitHub <noreply@github.com>2022-08-30 21:15:45 -0500
commita48d6ba4b4be4207a2c78c36b095fb69938e5ae5 (patch)
tree6b77af95e14bb9216b6b5dca321a5804a63cfced /modules/pprof
parent3edc14b687626f5ca1b4ecbe1d0d400b058f8dac (diff)
downloadgitea-a48d6ba4b4be4207a2c78c36b095fb69938e5ae5.tar.gz
gitea-a48d6ba4b4be4207a2c78c36b095fb69938e5ae5.zip
Go 1.19 format (#20758)
* 1.19 gofumpt Signed-off-by: jolheiser <john.olheiser@gmail.com> * Change CSV test Signed-off-by: jolheiser <john.olheiser@gmail.com> * Commit whitespace fixes from @zeripath Co-authored-by: zeripath <art27@cantab.net> * Update emoji Signed-off-by: jolheiser <john.olheiser@gmail.com> * bump swagger & fix generate-swagger Signed-off-by: jolheiser <john.olheiser@gmail.com> Co-authored-by: zeripath <art27@cantab.net> Co-authored-by: 6543 <6543@obermui.de> Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'modules/pprof')
-rw-r--r--modules/pprof/pprof.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/modules/pprof/pprof.go b/modules/pprof/pprof.go
index f080728766..8ce0ad484e 100644
--- a/modules/pprof/pprof.go
+++ b/modules/pprof/pprof.go
@@ -25,7 +25,7 @@ func DumpMemProfileForUsername(pprofDataPath, username string) error {
}
// DumpCPUProfileForUsername dumps a CPU profile at pprofDataPath as cpuprofile_<username>_<temporary id>
-// it returns the stop function which stops, writes and closes the CPU profile file
+// the stop function it returns stops, writes and closes the CPU profile file
func DumpCPUProfileForUsername(pprofDataPath, username string) (func(), error) {
f, err := os.CreateTemp(pprofDataPath, fmt.Sprintf("cpuprofile_%s_", username))
if err != nil {