mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 22:43:10 -06:00
Reduce timeout to 1s
This commit is contained in:
parent
da7bca0224
commit
0b3a264648
|
|
@ -372,7 +372,7 @@ func (u *DeviceListUpdater) notifyWorkers(userID string) {
|
||||||
u.workerChans[index] <- remoteServer
|
u.workerChans[index] <- remoteServer
|
||||||
select {
|
select {
|
||||||
case <-ch:
|
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 don't return an error in this case as it's not a failure condition.
|
||||||
// we mainly block for the benefit of sytest anyway
|
// we mainly block for the benefit of sytest anyway
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue