Merge pull request #454 from bnjbvr/fix-typo

fix typo `Subsribe` -> `Subscribe` in function name
This commit is contained in:
Kegan Dougal 2024-08-21 09:30:08 +01:00 committed by GitHub
commit c2dd20a00e
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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
}