Skip to content

Commit

Permalink
mark the client that the scheduler made also as non-shared
Browse files Browse the repository at this point in the history
  • Loading branch information
mikhail5555 committed Nov 19, 2024
1 parent 106c07a commit 5dfa742
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions scheduler.go
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,7 @@ func NewScheduler(r RedisConnOpt, opts *SchedulerOpts) *Scheduler {
}
scheduler := NewSchedulerFromRedisClient(redisClient, opts)
scheduler.sharedConnection = false
scheduler.client.sharedConnection = false
return scheduler
}

Expand Down

0 comments on commit 5dfa742

Please sign in to comment.