mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-19 12:03:09 -06:00
More retries
This commit is contained in:
parent
4604add1c0
commit
8246b20d85
|
|
@ -33,7 +33,7 @@ import (
|
||||||
log "github.com/sirupsen/logrus"
|
log "github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
const maxRetries = 3
|
const maxRetries = 5
|
||||||
const retryDelay = time.Second
|
const retryDelay = time.Second
|
||||||
|
|
||||||
// OutputReceiptConsumer consumes events that originate in the clientapi.
|
// OutputReceiptConsumer consumes events that originate in the clientapi.
|
||||||
|
|
@ -105,7 +105,7 @@ func (t *OutputPresenceConsumer) onMessage(ctx context.Context, msgs []*nats.Msg
|
||||||
}
|
}
|
||||||
|
|
||||||
var joined []gomatrixserverlib.ServerName
|
var joined []gomatrixserverlib.ServerName
|
||||||
// We're trying to get joined rooms for this user for 3 seconds (3 retries, 1s delay)
|
// We're trying to get joined rooms for this user for 5 seconds (5 retries, 1s delay)
|
||||||
// If we fail to get joined hosts, we discard the presence event.
|
// If we fail to get joined hosts, we discard the presence event.
|
||||||
for i := 0; i < maxRetries; i++ {
|
for i := 0; i < maxRetries; i++ {
|
||||||
var queryRes roomserverAPI.QueryRoomsForUserResponse
|
var queryRes roomserverAPI.QueryRoomsForUserResponse
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue