From 2f0b2de340b871a75742f42fd8838b6176ef84fe Mon Sep 17 00:00:00 2001 From: Erik Johnston Date: Tue, 21 Nov 2017 13:49:25 +0000 Subject: [PATCH] Comments --- src/github.com/matrix-org/dendrite/syncapi/sync/request.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 75b9f1050..9fa4900b0 100644 --- a/src/github.com/matrix-org/dendrite/syncapi/sync/request.go +++ b/src/github.com/matrix-org/dendrite/syncapi/sync/request.go @@ -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