From 726416ea46f409d67fa56920055fbc3eaad30547 Mon Sep 17 00:00:00 2001 From: Gregory Eremin Date: Wed, 24 Sep 2014 14:39:12 +0400 Subject: [PATCH] Update client debug func --- client/client.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/client/client.go b/client/client.go index 060c2a1..84e58f9 100644 --- a/client/client.go +++ b/client/client.go @@ -39,6 +39,7 @@ type ( } DebugInfo struct { Version string `json:"version"` + Gomaxprocs int `json:"gomaxprocs"` Goroutines int `json:"goroutines"` KyotoCabinet map[string]interface{} `json:"kyoto_cabinet"` } @@ -158,7 +159,7 @@ func (c *Client) Debug() *DebugInfo { return nil } - dbg := DebugInfo{} + var dbg DebugInfo if err := json.Unmarshal(body, &dbg); err != nil { return nil }