Skip to content

Commit

Permalink
chore: rowserrcheck
Browse files Browse the repository at this point in the history
  • Loading branch information
markphelps committed Jun 27, 2023
1 parent 076d480 commit 3bf7d97
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions internal/storage/sql/common/rollout.go
Original file line number Diff line number Diff line change
Expand Up @@ -226,7 +226,12 @@ func (s *Store) ListRollouts(ctx context.Context, namespaceKey, flagKey string,
rollout := rolloutsById[rolloutId]
rollout.Rule = &flipt.Rollout_Segment{Segment: rule}
}

if err := rows.Err(); err != nil {
return results, err
}
}

// get all rules from rollout_percentage_rules table
if len(rolloutsByType[flipt.RolloutType_PERCENTAGE_ROLLOUT_TYPE]) > 0 {
allRuleIds := make([]string, 0, len(rolloutsByType[flipt.RolloutType_PERCENTAGE_ROLLOUT_TYPE]))
Expand Down Expand Up @@ -262,6 +267,10 @@ func (s *Store) ListRollouts(ctx context.Context, namespaceKey, flagKey string,
rollout := rolloutsById[rolloutId]
rollout.Rule = &flipt.Rollout_Percentage{Percentage: rule}
}

if err := rows.Err(); err != nil {
return results, err
}
}

var next *flipt.Rollout
Expand Down

0 comments on commit 3bf7d97

Please sign in to comment.