Skip to content

Commit

Permalink
Reorganized switch case
Browse files Browse the repository at this point in the history
Signed-off-by: Juraci Paixão Kröhling <juraci@kroehling.de>
  • Loading branch information
jpkrohling committed Jun 5, 2023
1 parent e45443d commit ba9fee0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion receiver/otlpreceiver/erroradapter.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ func gRPCToHTTP(s *status.Status) int {
return http.StatusInternalServerError
case codes.AlreadyExists:
return http.StatusConflict
case codes.Canceled, codes.DataLoss:
case codes.Canceled:
return http.StatusInternalServerError
case codes.DataLoss:
return http.StatusInternalServerError
case codes.DeadlineExceeded:
return http.StatusRequestTimeout
Expand Down

0 comments on commit ba9fee0

Please sign in to comment.