1
0
Fork 0

Update client debug func

This commit is contained in:
Gregory Eremin 2014-09-24 14:39:12 +04:00
parent 8365c05961
commit 726416ea46
1 changed files with 2 additions and 1 deletions

View File

@ -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
}