mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-07 06:53:09 -06:00
Add notes
This commit is contained in:
parent
465ddc2204
commit
ad5328c453
|
|
@ -74,7 +74,6 @@ func (rp *RequestPool) OnIncomingSyncRequest(req *http.Request) util.JSONRespons
|
||||||
"userID": userID,
|
"userID": userID,
|
||||||
"since": since,
|
"since": since,
|
||||||
"timeout": timeout,
|
"timeout": timeout,
|
||||||
"current": rp.currPos,
|
|
||||||
}).Info("Incoming /sync request")
|
}).Info("Incoming /sync request")
|
||||||
|
|
||||||
// Set up a timer based on the provided timeout value.
|
// Set up a timer based on the provided timeout value.
|
||||||
|
|
@ -94,6 +93,9 @@ func (rp *RequestPool) OnIncomingSyncRequest(req *http.Request) util.JSONRespons
|
||||||
}
|
}
|
||||||
}()
|
}()
|
||||||
|
|
||||||
|
// TODO: Spawn off a 3rd goroutine to do this work so we can simply race
|
||||||
|
// with the timeout to determine what to return to the client.
|
||||||
|
|
||||||
res, err := rp.currentSyncForUser(syncReq)
|
res, err := rp.currentSyncForUser(syncReq)
|
||||||
close(done) // signal that the work is complete
|
close(done) // signal that the work is complete
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue