1
0
Fork 0
mirror of https://github.com/matrix-org/dendrite.git synced 2025-04-27 03:04:28 -05:00

Reduce timeout to 1s

This commit is contained in:
Till Faelligen 2023-11-01 10:38:36 +01:00
parent da7bca0224
commit 0b3a264648
No known key found for this signature in database
GPG key ID: ACCDC9606D472758

View file

@ -372,7 +372,7 @@ func (u *DeviceListUpdater) notifyWorkers(userID string) {
u.workerChans[index] <- remoteServer
select {
case <-ch:
case <-time.After(10 * time.Second):
case <-time.After(1 * time.Second):
// we don't return an error in this case as it's not a failure condition.
// we mainly block for the benefit of sytest anyway
}