mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-12 09:23:09 -06:00
Comment
This commit is contained in:
parent
6c379f7d13
commit
9646941b06
|
|
@ -70,6 +70,8 @@ func getTimeout(timeoutMS string) time.Duration {
|
||||||
return time.Duration(i) * time.Millisecond
|
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.
|
||||||
func getSyncStreamPosition(since string) (*types.StreamPosition, error) {
|
func getSyncStreamPosition(since string) (*types.StreamPosition, error) {
|
||||||
if since == "" {
|
if since == "" {
|
||||||
return nil, nil
|
return nil, nil
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue