Skip to content

Commit

Permalink
Fix ruler API (cortexproject#3917)
Browse files Browse the repository at this point in the history
Signed-off-by: Marco Pracucci <marco@pracucci.com>
  • Loading branch information
pracucci authored and harry671003 committed Mar 11, 2021
1 parent 3f30cd1 commit 0336a92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pkg/ruler/ruler.go
Original file line number Diff line number Diff line change
Expand Up @@ -711,7 +711,7 @@ func (r *Ruler) getShardedRules(ctx context.Context) ([]*GroupStateDesc, error)
return nil, err
}
cc := NewRulerClient(conn)
newGrps, err := cc.Rules(ctx, nil)
newGrps, err := cc.Rules(ctx, &RulesRequest{})

// Close the gRPC connection regardless the RPC was successful or not.
if closeErr := conn.Close(); closeErr != nil {
Expand Down

0 comments on commit 0336a92

Please sign in to comment.