summaryrefslogtreecommitdiff
path: root/internal/cache/status.go
diff options
context:
space:
mode:
authorLibravatar tobi <31960611+tsmethurst@users.noreply.github.com>2021-09-30 11:16:23 +0200
committerLibravatar GitHub <noreply@github.com>2021-09-30 11:16:23 +0200
commit231075f28df55bfb622f54859f858528445cae0c (patch)
treeffdc27f31646d10e35902087fa6c703bc49bfc82 /internal/cache/status.go
parenthandle remote account deletion more systematically (#254) (diff)
downloadgotosocial-231075f28df55bfb622f54859f858528445cae0c.tar.xz
Golint (#255)
Diffstat (limited to 'internal/cache/status.go')
-rw-r--r--internal/cache/status.go4
1 files changed, 2 insertions, 2 deletions
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(),