稳定发布1.0.0

This commit is contained in:
2025-02-27 17:41:14 +08:00
parent b36e67f826
commit f251df5ce3
7 changed files with 47 additions and 27 deletions

View File

@@ -12,7 +12,7 @@ func Unique(stopper common.Stopper) leaf.HandlerFunc {
var lock sync.Mutex
return func(c *leaf.Context) {
if !lock.TryLock() {
zap.S().Infoln("尝试加锁失败,执行停止任务")
zap.S().Infoln("停止之前的任务,再尝试加锁")
stopper.Stop()
lock.Lock()
}