From 231075f28df55bfb622f54859f858528445cae0c Mon Sep 17 00:00:00 2001 From: tobi <31960611+tsmethurst@users.noreply.github.com> Date: Thu, 30 Sep 2021 11:16:23 +0200 Subject: Golint (#255) --- internal/cache/status.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal/cache/status.go') diff --git a/internal/cache/status.go b/internal/cache/status.go index f6fe45d99..5ea528055 100644 --- a/internal/cache/status.go +++ b/internal/cache/status.go @@ -7,7 +7,7 @@ import ( "github.com/superseriousbusiness/gotosocial/internal/gtsmodel" ) -// statusCache is a wrapper around ttlcache.Cache to provide URL and URI lookups for gtsmodel.Status +// StatusCache is a wrapper around ttlcache.Cache to provide URL and URI lookups for gtsmodel.Status type StatusCache struct { cache *ttlcache.Cache // map of IDs -> cached statuses urls map[string]string // map of status URLs -> IDs @@ -15,7 +15,7 @@ type StatusCache struct { mutex sync.Mutex } -// newStatusCache returns a new instantiated statusCache object +// NewStatusCache returns a new instantiated statusCache object func NewStatusCache() *StatusCache { c := StatusCache{ cache: ttlcache.NewCache(), -- cgit v1.2.3