mirror of
https://shylinux.com/x/icebergs
synced 2025-04-28 18:22:02 +08:00
opt some
This commit is contained in:
parent
2969cf43f3
commit
87d36b4437
@ -5,7 +5,6 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"os/signal"
|
"os/signal"
|
||||||
"syscall"
|
"syscall"
|
||||||
"time"
|
|
||||||
|
|
||||||
ice "shylinux.com/x/icebergs"
|
ice "shylinux.com/x/icebergs"
|
||||||
"shylinux.com/x/icebergs/base/mdb"
|
"shylinux.com/x/icebergs/base/mdb"
|
||||||
@ -24,11 +23,11 @@ func (f *Frame) Start(m *ice.Message, arg ...string) {
|
|||||||
fmt.Fprint(f, os.Getpid())
|
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 {
|
for {
|
||||||
select {
|
select {
|
||||||
case <-time.Tick(t):
|
// case <-time.Tick(t):
|
||||||
m.Cmd(TIMER, HAPPEN, kit.Dict(ice.LOG_DISABLE, ice.TRUE))
|
// m.Cmd(TIMER, HAPPEN, kit.Dict(ice.LOG_DISABLE, ice.TRUE))
|
||||||
case s, ok := <-f.s:
|
case s, ok := <-f.s:
|
||||||
if !ok {
|
if !ok {
|
||||||
return
|
return
|
||||||
|
Loading…
x
Reference in New Issue
Block a user