Explorar o código

Use http.StatusOK

Mauricio Araujo %!s(int64=2) %!d(string=hai) anos
pai
achega
f6cd4a7f8c
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      internal/billing/metronome.go

+ 1 - 1
internal/billing/metronome.go

@@ -394,7 +394,7 @@ func (m MetronomeClient) IngestEvents(ctx context.Context, events []types.Billin
 			}
 
 			// Any other status code can be safely retried
-			if statusCode == 200 {
+			if statusCode == http.StatusOK {
 				break
 			}
 			currentAttempts++