1
0
mirror of https://shylinux.com/x/icebergs synced 2025-04-26 01:24:05 +08:00
This commit is contained in:
IT 老营长 @云轩领航-创始人 2023-06-21 17:15:06 +08:00
parent 2969cf43f3
commit 87d36b4437

View File

@ -5,7 +5,6 @@ import (
"os"
"os/signal"
"syscall"
"time"
ice "shylinux.com/x/icebergs"
"shylinux.com/x/icebergs/base/mdb"
@ -24,11 +23,11 @@ func (f *Frame) Start(m *ice.Message, arg ...string) {
fmt.Fprint(f, os.Getpid())
}
})
t := kit.Duration(mdb.Conf(m, TIMER, kit.Keym(TICK)))
// t := kit.Duration(mdb.Conf(m, TIMER, kit.Keym(TICK)))
for {
select {
case <-time.Tick(t):
m.Cmd(TIMER, HAPPEN, kit.Dict(ice.LOG_DISABLE, ice.TRUE))
// case <-time.Tick(t):
// m.Cmd(TIMER, HAPPEN, kit.Dict(ice.LOG_DISABLE, ice.TRUE))
case s, ok := <-f.s:
if !ok {
return