mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
fix typo Subsribe
-> Subscribe
in function name
This commit is contained in:
parent
f70dbe0186
commit
fbabf4fe1b
@ -222,7 +222,7 @@ func NewUserCache(userID string, globalCache *GlobalCache, store UserCacheStore,
|
|||||||
return uc
|
return uc
|
||||||
}
|
}
|
||||||
|
|
||||||
func (c *UserCache) Subsribe(ucl UserCacheListener) (id int) {
|
func (c *UserCache) Subscribe(ucl UserCacheListener) (id int) {
|
||||||
c.listenersMu.Lock()
|
c.listenersMu.Lock()
|
||||||
defer c.listenersMu.Unlock()
|
defer c.listenersMu.Unlock()
|
||||||
id = c.id
|
id = c.id
|
||||||
|
@ -91,7 +91,7 @@ func NewConnState(
|
|||||||
)
|
)
|
||||||
// subscribe for updates before loading. We risk seeing dupes but that's fine as load positions
|
// subscribe for updates before loading. We risk seeing dupes but that's fine as load positions
|
||||||
// will stop us double-processing.
|
// will stop us double-processing.
|
||||||
cs.userCacheID = cs.userCache.Subsribe(cs)
|
cs.userCacheID = cs.userCache.Subscribe(cs)
|
||||||
return cs
|
return cs
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user