mirror of
https://github.com/gabehf/Koito.git
synced 2026-03-07 13:38:15 -08:00
increase timeout in lbz relay
This commit is contained in:
parent
1e04464dad
commit
2a29c43ac2
1 changed files with 4 additions and 4 deletions
|
|
@ -207,9 +207,9 @@ func doLbzRelay(requestBytes []byte, l *zerolog.Logger) {
|
|||
}
|
||||
}()
|
||||
const (
|
||||
maxRetryDuration = 10 * time.Second
|
||||
initialBackoff = 1 * time.Second
|
||||
maxBackoff = 4 * time.Second
|
||||
maxRetryDuration = 3 * time.Minute
|
||||
initialBackoff = 5 * time.Second
|
||||
maxBackoff = 40 * time.Second
|
||||
)
|
||||
req, err := http.NewRequest("POST", cfg.LbzRelayUrl()+"/submit-listens", bytes.NewBuffer(requestBytes))
|
||||
if err != nil {
|
||||
|
|
@ -221,7 +221,7 @@ func doLbzRelay(requestBytes []byte, l *zerolog.Logger) {
|
|||
req.Header.Add("Content-Type", "application/json")
|
||||
|
||||
client := &http.Client{
|
||||
Timeout: 5 * time.Second,
|
||||
Timeout: 30 * time.Second,
|
||||
}
|
||||
|
||||
var resp *http.Response
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue