Skip to content

Commit

Permalink
lint: nolint exhaustive switch check for Put case
Browse files Browse the repository at this point in the history
  • Loading branch information
samlaf committed Oct 29, 2024
1 parent 956372a commit f317339
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions store/generated_key/eigenda/eigenda.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ func (e Store) Put(ctx context.Context, value []byte) ([]byte, error) {
// api.ErrorFailover is returned, so we should retry
return true
}
//nolint:exhaustive // we only care about a few grpc error codes
switch st.Code() {
case codes.InvalidArgument:
// we don't retry 400 errors because there is no point,
Expand Down

0 comments on commit f317339

Please sign in to comment.