mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 09:23:09 -06:00
Comments
This commit is contained in:
parent
3c8a06b088
commit
2f0b2de340
|
|
@ -34,7 +34,7 @@ type syncRequest struct {
|
|||
userID string
|
||||
limit int
|
||||
timeout time.Duration
|
||||
since *types.StreamPosition
|
||||
since *types.StreamPosition // nil means that no since token was supplied
|
||||
wantFullState bool
|
||||
log *log.Entry
|
||||
}
|
||||
|
|
@ -70,8 +70,8 @@ func getTimeout(timeoutMS string) time.Duration {
|
|||
return time.Duration(i) * time.Millisecond
|
||||
}
|
||||
|
||||
// getSyncStreamPosition tries to pass a string taken from the API to a stream
|
||||
// position. If the string is empty then (nil, nil) is returned.
|
||||
// getSyncStreamPosition tries to pass a 'since' token taken from the API to a
|
||||
// stream position. If the string is empty then (nil, nil) is returned.
|
||||
func getSyncStreamPosition(since string) (*types.StreamPosition, error) {
|
||||
if since == "" {
|
||||
return nil, nil
|
||||
|
|
|
|||
Loading…
Reference in a new issue