mirror of https://github.com/tidwall/tile38.git
output json fix #98
This commit is contained in:
parent
bf0fee122d
commit
b6c645791f
|
@ -86,7 +86,6 @@ func (c *Controller) cmdJget(msg *server.Message) (string, error) {
|
|||
switch msg.OutputType {
|
||||
case server.JSON:
|
||||
if res.Exists() {
|
||||
var val string
|
||||
buf.WriteString(`,"value":` + jsonString(val))
|
||||
}
|
||||
buf.WriteString(`,"elapsed":"` + time.Now().Sub(start).String() + "\"}")
|
||||
|
|
Loading…
Reference in New Issue