Mauricio Araujo пре 2 година
родитељ
комит
f6cd4a7f8c
1 измењених фајлова са 1 додато и 1 уклоњено
  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
 			// Any other status code can be safely retried
-			if statusCode == 200 {
+			if statusCode == http.StatusOK {
 				break
 				break
 			}
 			}
 			currentAttempts++
 			currentAttempts++