fix typo Subsribe -> Subscribe in function name

This commit is contained in:
Benjamin Bouvier 2024-07-16 17:14:05 +02:00
parent f70dbe0186
commit fbabf4fe1b
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
}