mirror of https://github.com/tidwall/tile38.git
Merge branch 'gojuno-master'
This commit is contained in:
commit
9a37f33a2c
|
@ -150,8 +150,8 @@ func fenceMatch(hookName string, sw *scanWriter, fence *liveFenceSwitches, metas
|
||||||
sw.fullFields = true
|
sw.fullFields = true
|
||||||
sw.msg.OutputType = server.JSON
|
sw.msg.OutputType = server.JSON
|
||||||
sw.writeObject(ScanWriterParams{
|
sw.writeObject(ScanWriterParams{
|
||||||
id:details.id,
|
id: details.id,
|
||||||
o: details.obj,
|
o: details.obj,
|
||||||
fields: details.fields,
|
fields: details.fields,
|
||||||
noLock: true,
|
noLock: true,
|
||||||
})
|
})
|
||||||
|
@ -194,10 +194,13 @@ func fenceMatch(hookName string, sw *scanWriter, fence *liveFenceSwitches, metas
|
||||||
|
|
||||||
msgs := make([][]byte, 0, 4)
|
msgs := make([][]byte, 0, 4)
|
||||||
if fence.detect == nil || fence.detect[detect] {
|
if fence.detect == nil || fence.detect[detect] {
|
||||||
if len(res) > 0 && res[0] == '{' {
|
if fence.detect == nil || fence.detect[detect] {
|
||||||
res = makemsg(details.command, group, detect, hookName, metas, details.key, details.timestamp, res[1:])
|
if len(res) > 0 && res[0] == '{' {
|
||||||
|
msgs = append(msgs, makemsg(details.command, group, detect, hookName, metas, details.key, details.timestamp, res[1:]))
|
||||||
|
} else {
|
||||||
|
msgs = append(msgs, res)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
msgs = append(msgs, res)
|
|
||||||
}
|
}
|
||||||
switch detect {
|
switch detect {
|
||||||
case "enter":
|
case "enter":
|
||||||
|
|
Loading…
Reference in New Issue