Skip to content

Commit

Permalink
refactor: cycle condition when saving team
Browse files Browse the repository at this point in the history
  • Loading branch information
AleksandrMatsko committed Nov 20, 2024
1 parent 962ae53 commit 0ed54ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion database/redis/teams.go
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ func (connector *DbConnector) SaveTeam(teamID string, team moira.Team) error {
return fmt.Errorf("failed to get team: %w", err)
}

for i := 0; i < teamSaveAttempts; i++ {
for range teamSaveAttempts {
// need to use watch here because if team name is updated
// we also need to change name in moira-teams-names set
err = c.Watch(
Expand Down

0 comments on commit 0ed54ce

Please sign in to comment.