mirror of
https://github.com/ethereum/go-ethereum.git
synced 2026-08-19 02:12:23 +00:00
fix pointer receiver
This commit is contained in:
parent
53e5166eb0
commit
0c022a77e1
1 changed files with 1 additions and 1 deletions
|
|
@ -191,7 +191,7 @@ func (*HandlerT) WriteMemProfile(file string) error {
|
||||||
|
|
||||||
// Stacks returns a printed representation of the stacks of all goroutines.
|
// Stacks returns a printed representation of the stacks of all goroutines.
|
||||||
func (*HandlerT) Stacks() string {
|
func (*HandlerT) Stacks() string {
|
||||||
var buf bytes.Buffer
|
buf := new(bytes.Buffer)
|
||||||
pprof.Lookup("goroutine").WriteTo(buf, 2)
|
pprof.Lookup("goroutine").WriteTo(buf, 2)
|
||||||
return buf.String()
|
return buf.String()
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue