mirror of
https://github.com/matrix-org/sliding-sync.git
synced 2025-03-10 13:37:11 +00:00
Merge pull request #454 from bnjbvr/fix-typo
fix typo `Subsribe` -> `Subscribe` in function name
This commit is contained in:
commit
c2dd20a00e
@ -222,7 +222,7 @@ func NewUserCache(userID string, globalCache *GlobalCache, store UserCacheStore,
|
||||
return uc
|
||||
}
|
||||
|
||||
func (c *UserCache) Subsribe(ucl UserCacheListener) (id int) {
|
||||
func (c *UserCache) Subscribe(ucl UserCacheListener) (id int) {
|
||||
c.listenersMu.Lock()
|
||||
defer c.listenersMu.Unlock()
|
||||
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
|
||||
// will stop us double-processing.
|
||||
cs.userCacheID = cs.userCache.Subsribe(cs)
|
||||
cs.userCacheID = cs.userCache.Subscribe(cs)
|
||||
return cs
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user