Update client debug func
This commit is contained in:
parent
8365c05961
commit
726416ea46
|
@ -39,6 +39,7 @@ type (
|
||||||
}
|
}
|
||||||
DebugInfo struct {
|
DebugInfo struct {
|
||||||
Version string `json:"version"`
|
Version string `json:"version"`
|
||||||
|
Gomaxprocs int `json:"gomaxprocs"`
|
||||||
Goroutines int `json:"goroutines"`
|
Goroutines int `json:"goroutines"`
|
||||||
KyotoCabinet map[string]interface{} `json:"kyoto_cabinet"`
|
KyotoCabinet map[string]interface{} `json:"kyoto_cabinet"`
|
||||||
}
|
}
|
||||||
|
@ -158,7 +159,7 @@ func (c *Client) Debug() *DebugInfo {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
||||||
dbg := DebugInfo{}
|
var dbg DebugInfo
|
||||||
if err := json.Unmarshal(body, &dbg); err != nil {
|
if err := json.Unmarshal(body, &dbg); err != nil {
|
||||||
return nil
|
return nil
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue