Skip to content
This repository was archived by the owner on Oct 28, 2022. It is now read-only.

Commit c46a484

Browse files
committed
shorten the on match retry backoff time
1 parent 32e4746 commit c46a484

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

models/onMatchHook.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -111,11 +111,11 @@ func (h *OnMatchHook) CallWithRetry(body io.Reader, dataKind DataKind) (http.Hea
111111
case 1:
112112
time.Sleep(time.Millisecond * 100)
113113
case 2:
114-
time.Sleep(time.Second)
114+
time.Sleep(time.Millisecond * 500)
115115
case 3:
116-
time.Sleep(time.Second * 2)
116+
time.Sleep(time.Second)
117117
case 4:
118-
time.Sleep(time.Second * 3)
118+
time.Sleep(time.Second * 2)
119119
}
120120

121121
if body == nil {

0 commit comments

Comments
 (0)