Skip to content

Commit

Permalink
feat: Updated storage/redis_controller.go
Browse files Browse the repository at this point in the history
  • Loading branch information
sweep-ai[bot] authored Jan 30, 2024
1 parent cba864b commit b36ef75
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion storage/redis_controller.go
Original file line number Diff line number Diff line change
Expand Up @@ -208,7 +208,8 @@ func (rc *RedisController) statusCheck(ctx context.Context, conf *config.Config,
rc.redisUp.Store(connected)

//if we weren't alerady connected but now we are connected, we trigger the reconnect
if !alreadyConnected && connected {
if !rc.enabled()
|| (!alreadyConnected && connected) {
rc.reconnect <- struct{}{}
}
}
Expand Down

0 comments on commit b36ef75

Please sign in to comment.