Explorar o código

Fix debug listener

世界 hai 11 meses
pai
achega
af58e3bec0
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      debug_http.go

+ 1 - 1
debug_http.go

@@ -46,7 +46,7 @@ func applyDebugListenOption(options option.DebugOptions) {
 
 			encoder := json.NewEncoder(writer)
 			encoder.SetIndent("", "  ")
-			encoder.Encode(memObject)
+			encoder.Encode(&memObject)
 		})
 		r.Route("/pprof", func(r chi.Router) {
 			r.HandleFunc("/", func(writer http.ResponseWriter, request *http.Request) {