From fbabf4fe1b3300431e2534780129bcf421a9aeeb Mon Sep 17 00:00:00 2001 From: Benjamin Bouvier Date: Tue, 16 Jul 2024 17:14:05 +0200 Subject: [PATCH] fix typo `Subsribe` -> `Subscribe` in function name --- sync3/caches/user.go | 2 +- sync3/handler/connstate.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) 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 }