We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ede5d98 commit 556c555Copy full SHA for 556c555
timer/timer.go
@@ -2,11 +2,12 @@ package LollipopGo_timer
2
3
import (
4
"LollipopGo/log"
5
- "github.com/name5566/leaf/conf"
6
"runtime"
7
"time"
8
)
9
+var LenStackBuf int = 4096
10
+
11
type Dispatcher struct {
12
ChanTimer chan *Timer
13
}
@@ -31,8 +32,8 @@ func (t *Timer) Cb() {
31
32
defer func() {
33
t.cb = nil
34
if r := recover(); r != nil {
- if conf.LenStackBuf > 0 {
35
- buf := make([]byte, conf.LenStackBuf)
+ if LenStackBuf > 0 {
36
+ buf := make([]byte, LenStackBuf)
37
l := runtime.Stack(buf, false)
38
log.Error("%v: %s", r, buf[:l])
39
} else {
0 commit comments