diff --git a/sync3/caches/user.go b/sync3/caches/user.go index 3a7ec0c1..fa21cfad 100644 --- a/sync3/caches/user.go +++ b/sync3/caches/user.go @@ -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 diff --git a/sync3/handler/connstate.go b/sync3/handler/connstate.go index 2eed4974..c71a86dc 100644 --- a/sync3/handler/connstate.go +++ b/sync3/handler/connstate.go @@ -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 }