Skip to content

Commit

Permalink
Fix panic in ErrorBudgetGraph
Browse files Browse the repository at this point in the history
The panic happened because within the latency objective we referenced the ratio...
  • Loading branch information
metalmatze committed Mar 31, 2023
1 parent 206fbc4 commit 2aa45ba
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -638,7 +638,7 @@ func (s *objectiveServer) GraphErrorBudget(ctx context.Context, req *connect.Req
}
if objective.Indicator.Latency != nil {
groupings := map[string]struct{}{}
for _, g := range objective.Indicator.Ratio.Grouping {
for _, g := range objective.Indicator.Latency.Grouping {
groupings[g] = struct{}{}
}

Expand Down

0 comments on commit 2aa45ba

Please sign in to comment.