mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-20 05:13:11 -06:00
Use latest sync position
This commit is contained in:
parent
cc456240fa
commit
7a073b14fc
3
eduserver/cache/cache.go
vendored
3
eduserver/cache/cache.go
vendored
|
|
@ -115,9 +115,8 @@ func (t *EDUCache) AddTypingUser(
|
|||
func (t *EDUCache) AddSendToDeviceMessage() int64 {
|
||||
t.Lock()
|
||||
defer t.Unlock()
|
||||
r := t.latestSyncPosition
|
||||
t.latestSyncPosition++
|
||||
return r
|
||||
return t.latestSyncPosition
|
||||
}
|
||||
|
||||
// addUser with mutex lock & replace the previous timer.
|
||||
|
|
|
|||
Loading…
Reference in a new issue