chore(plugins): 移除分片诊断日志

SHARD_DEBUG 只在排查「18 个分片为什么还是 12 秒」时用过一次,结论是
17 个 VM 真的在并行(17 VMs live),慢的是其中一个源本身。留着它就是
给热路径留一个 os.Getenv。
This commit is contained in:
JianFeeeee
2026-10-05 07:22:09 +08:00
parent c4b37d4322
commit 18525ae4c0

View File

@ -2,7 +2,6 @@ package lua
import (
"fmt"
"os"
"sync"
)
@ -125,12 +124,6 @@ func (sp *shardPool) ShardCall(name, fn string, argsList []map[string]interface{
}(i)
}
wg.Wait()
if os.Getenv("SHARD_DEBUG") != "" {
sp.mu.Lock()
idle, live := len(sp.idle), sp.live
sp.mu.Unlock()
fmt.Fprintf(os.Stderr, "[shard] %s.%s: %d args, %d VMs live, %d idle\n", name, fn, len(argsList), live, idle)
}
var failed int
for _, err := range errs {