forked from x/icebergs
opt some
This commit is contained in:
parent
15c6d3f064
commit
41021ff55b
4
meta.go
4
meta.go
@ -213,7 +213,9 @@ func (m *Message) Length() (max int) {
|
||||
func (m *Message) Tables(cbs ...func(value Maps)) *Message {
|
||||
return m.Table(func(index int, value Maps, head []string) {
|
||||
for _, cb := range cbs {
|
||||
cb(value)
|
||||
if cb != nil {
|
||||
cb(value)
|
||||
}
|
||||
}
|
||||
})
|
||||
}
|
||||
|
@ -56,6 +56,7 @@ func init() {
|
||||
return
|
||||
}
|
||||
msg := m.Cmd("_sum", value[nfs.PATH], mdb.TOTAL, "10000")
|
||||
// msg := m.Cmd("_sum", value[nfs.PATH], mdb.TOTAL, "2022-01-01")
|
||||
|
||||
defer lock.Lock()()
|
||||
msg.Tables(func(value ice.Maps) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user