This commit is contained in:
eson 2023-09-08 11:45:14 +08:00
parent 5091a1018c
commit 568ac634bb

1
sm.go
View File

@ -45,7 +45,6 @@ func NewSMQueue(shardID uint64, replicaID uint64) sm.IStateMachine {
// totalAllocMB := float64(m.TotalAlloc) / 1024 / 1024
sysMB := float64(m.Sys) / 1024 / 1024
fmt.Printf("队列 剩余: %d, Alloc = %.2f MB, Sys = %.2f MB\n", params.Value, allocMB, sysMB)
time.Sleep(time.Second * 1)
} else {
time.Sleep(time.Second * 5)
}