set up context name for ampool

This commit is contained in:
amy
2026-11-08 22:44:20 -07:00
parent 9db7d4604f
commit ec50f048a1
+2 -1
View File
@@ -266,7 +266,8 @@ func main() {
ctx = context.WithValue(ctx, CONTEXTVAL_NAME, "main")
// Set up ampool.
ampool = util.AmNewPool(ctx, config.GlobalConfig.Tuning.WorkerTasks, config.GlobalConfig.Tuning.Queues.WorkerTasks)
ampool = util.AmNewPool(context.WithValue(ctx, CONTEXTVAL_NAME, "ampool"), config.GlobalConfig.Tuning.WorkerTasks,
config.GlobalConfig.Tuning.Queues.WorkerTasks)
go func() {
<-ctx.Done()
ampool.Shutdown()