This commit is contained in:
parent
8ee314b0bb
commit
daf401a2f7
9 changed files with 73 additions and 61 deletions
|
@ -9,7 +9,7 @@ import (
|
|||
"runtime/debug"
|
||||
"time"
|
||||
|
||||
"git.mstar.dev/mstar/goutils/other"
|
||||
httputil "git.mstar.dev/mstar/goutils/http"
|
||||
)
|
||||
|
||||
// Mounted at /profiling
|
||||
|
@ -65,7 +65,7 @@ func metricMemoryStatsHandler(w http.ResponseWriter, r *http.Request) {
|
|||
|
||||
jsonData, err := json.Marshal(&outData)
|
||||
if err != nil {
|
||||
other.HttpErr(
|
||||
httputil.HttpErr(
|
||||
w,
|
||||
HttpErrIdJsonMarshalFail,
|
||||
"Failed to encode return data",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue