mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-16 03:13:11 -06:00
Apply suggestions from code review
Co-Authored-By: Andrew Morgan <1342360+anoadragon453@users.noreply.github.com>
This commit is contained in:
parent
24b3e1a217
commit
801c6646f6
|
|
@ -361,7 +361,7 @@ func (d *SyncServerDatasource) IncrementalSync(
|
||||||
return res, nil
|
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.
|
// to it. It returns toPos and joinedRoomIDs for use of adding EDUs.
|
||||||
func (d *SyncServerDatasource) getResponseWithPDUsForCompleteSync(
|
func (d *SyncServerDatasource) getResponseWithPDUsForCompleteSync(
|
||||||
ctx context.Context,
|
ctx context.Context,
|
||||||
|
|
@ -522,7 +522,7 @@ func (d *SyncServerDatasource) SetTypingTimeoutCallback(fn cache.TimeoutCallback
|
||||||
}
|
}
|
||||||
|
|
||||||
// AddTypingUser adds a typing user to the typing cache.
|
// 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(
|
func (d *SyncServerDatasource) AddTypingUser(
|
||||||
userID, roomID string, expireTime *time.Time,
|
userID, roomID string, expireTime *time.Time,
|
||||||
) int64 {
|
) int64 {
|
||||||
|
|
@ -530,7 +530,7 @@ func (d *SyncServerDatasource) AddTypingUser(
|
||||||
}
|
}
|
||||||
|
|
||||||
// RemoveTypingUser removes a typing user from the typing cache.
|
// 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(
|
func (d *SyncServerDatasource) RemoveTypingUser(
|
||||||
userID, roomID string,
|
userID, roomID string,
|
||||||
) int64 {
|
) int64 {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue