Skip to content

Commit

Permalink
Avoid appending to redis health check key
Browse files Browse the repository at this point in the history
Preventing the value of the key getting VERY large
  • Loading branch information
MikeKasperlik committed Apr 6, 2022
1 parent 74a4ee5 commit 566339f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backend/redis/health_redis.go
Expand Up @@ -30,7 +30,7 @@ func (h *HealthCheck) HealthCheck(ctx context.Context) servicehealthcheck.Health
}

// Try writing
if err := client.Append(cfg.HealthCheckKey, "true").Err(); err != nil {
if err := client.Set(cfg.HealthCheckKey, "true", 0).Err(); err != nil {
h.state.SetErrorState(err)
return h.state.GetState()
}
Expand Down

0 comments on commit 566339f

Please sign in to comment.