mirror of https://github.com/tidwall/tile38.git
using bulkstring for info command #37
This commit is contained in:
parent
7fba512cb2
commit
d45eb6f92d
|
@ -233,7 +233,7 @@ func (c *Controller) cmdInfo(msg *server.Message) (res string, err error) {
|
||||||
}
|
}
|
||||||
res = `{"ok":true,"info":` + string(data) + `,"elapsed":"` + time.Now().Sub(start).String() + "\"}"
|
res = `{"ok":true,"info":` + string(data) + `,"elapsed":"` + time.Now().Sub(start).String() + "\"}"
|
||||||
case server.RESP:
|
case server.RESP:
|
||||||
data, err := resp.StringValue(w.String()).MarshalRESP()
|
data, err := resp.BytesValue(w.Bytes()).MarshalRESP()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return "", err
|
return "", err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue