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 }