From 801c6646f664a8163fb1786da9b118d9b44e15f3 Mon Sep 17 00:00:00 2001 From: Alex Chen Date: Fri, 12 Jul 2019 22:28:36 +0800 Subject: [PATCH] Apply suggestions from code review Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com> --- syncapi/storage/syncserver.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/syncapi/storage/syncserver.go b/syncapi/storage/syncserver.go index 5f2aa7413..b4d7ccbd2 100644 --- a/syncapi/storage/syncserver.go +++ b/syncapi/storage/syncserver.go @@ -361,7 +361,7 @@ func (d *SyncServerDatasource) IncrementalSync( return res, nil } -// getResponseWithPDUsForCompleteSync creates a response and add all PDUs needed +// getResponseWithPDUsForCompleteSync creates a response and adds all PDUs needed // to it. It returns toPos and joinedRoomIDs for use of adding EDUs. func (d *SyncServerDatasource) getResponseWithPDUsForCompleteSync( ctx context.Context, @@ -522,7 +522,7 @@ func (d *SyncServerDatasource) SetTypingTimeoutCallback(fn cache.TimeoutCallback } // AddTypingUser adds a typing user to the typing cache. -// Returns the latest sync position for typing notifications after update. +// Returns the newly calculated sync position for typing notifications. func (d *SyncServerDatasource) AddTypingUser( userID, roomID string, expireTime *time.Time, ) int64 { @@ -530,7 +530,7 @@ func (d *SyncServerDatasource) AddTypingUser( } // RemoveTypingUser removes a typing user from the typing cache. -// Returns the latest sync position for typing notifications after update. +// Returns the newly calculated sync position for typing notifications. func (d *SyncServerDatasource) RemoveTypingUser( userID, roomID string, ) int64 {