From 9646941b06e52fe0f325d4d0b2eddb6332a8d7cb Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Thu, 16 Nov 2017 17:08:51 +0000 Subject: [PATCH] Comment --- src/github.com/matrix-org/dendrite/syncapi/sync/request.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/github.com/matrix-org/dendrite/syncapi/sync/request.go b/src/github.com/matrix-org/dendrite/syncapi/sync/request.go index c22767f7a..75b9f1050 100644 --- a/src/github.com/matrix-org/dendrite/syncapi/sync/request.go +++ b/src/github.com/matrix-org/dendrite/syncapi/sync/request.go @@ -70,6 +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. func getSyncStreamPosition(since string) (*types.StreamPosition, error) { if since == "" { return nil, nil