mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 14:33:10 -06:00
Basic sleep for timeout
This commit is contained in:
parent
dbc0df7cd6
commit
8c4336b442
|
|
@ -73,11 +73,12 @@ func (rp *RequestPool) currentSyncForUser(req syncRequest) ([]gomatrixserverlib.
|
|||
// Check if we are going to return immediately and if so, calculate the current
|
||||
// sync for this user and return.
|
||||
if req.since == "" || req.timeout == time.Duration(0) || req.wantFullState {
|
||||
|
||||
return []gomatrixserverlib.Event{}, nil
|
||||
}
|
||||
|
||||
// wait for an event which affects this user or one of their rooms, then recheck for new
|
||||
// TODO: wait for an event which affects this user or one of their rooms, then recheck for new
|
||||
// sync data.
|
||||
time.Sleep(req.timeout)
|
||||
|
||||
return nil, nil
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue