update vendor

master
兔子 3 years ago
parent d51f213e29
commit f62e9b9f40
Signed by: b612
GPG Key ID: 481225A74DEB62A1

@ -1,6 +1,7 @@
package starlog
import (
"b612.me/starmap"
"fmt"
"io"
"math/rand"
@ -12,6 +13,7 @@ var Std *StarLogger
var stdmu sync.Mutex
func init() {
stacks = starmap.NewStarStack(1024)
rand.Seed(time.Now().UnixNano())
stackStopChan = make(chan int)
StartStacks()

@ -33,7 +33,7 @@ var (
LvPanic: "PANIC",
LvFatal: "FATAL",
}
stacks starmap.StarStack
stacks *starmap.StarStack
stackStarted bool = false
stackStopChan chan int
stackMu sync.Mutex
@ -165,7 +165,7 @@ func StartStacks() {
}
poped := stacks.MustPop()
if poped == nil {
time.Sleep(time.Millisecond * 10)
time.Sleep(time.Microsecond * 500)
continue
}
val := poped.(logTransfer)

Loading…
Cancel
Save