2
0
mirror of https://github.com/hibiken/asynq.git synced 2025-04-20 07:40:19 +08:00

mark the client that the scheduler made also as non-shared

This commit is contained in:
Mikhail Epifanov 2024-11-19 12:13:48 +01:00
parent 106c07adaa
commit 5dfa74254f
No known key found for this signature in database

View File

@ -60,6 +60,7 @@ func NewScheduler(r RedisConnOpt, opts *SchedulerOpts) *Scheduler {
}
scheduler := NewSchedulerFromRedisClient(redisClient, opts)
scheduler.sharedConnection = false
scheduler.client.sharedConnection = false
return scheduler
}