Skip to content

Find, verify, and analyze leaked credentials

detectors/twilio: add exponential backoff retry logic (#4652)

Shahzad Haider69045956f122
diff --git a/pkg/detectors/twilio/twilio.go b/pkg/detectors/twilio/twilio.go
index eaa7bb4ec..ca01b94d2 100644
--- a/pkg/detectors/twilio/twilio.go
+++ b/pkg/detectors/twilio/twilio.go
@@ -23,7 +23,7 @@ type Scanner struct {
var _ detectors.Detector = (*Scanner)(nil)
var (
- defaultClient = common.SaneHttpClient()
+ defaultClient = common.RetryableHTTPClient()
sidPat = regexp.MustCompile(`\bAC[0-9a-f]{32}\b`)
keyPat = regexp.MustCompile(`\b[0-9a-f]{32}\b`)
)