mirror of
https://github.com/superseriousbusiness/gotosocial.git
synced 2025-10-31 22:52:25 -05:00
Golint (#255)
This commit is contained in:
parent
36a09dd0df
commit
231075f28d
7 changed files with 21 additions and 40 deletions
4
internal/cache/status.go
vendored
4
internal/cache/status.go
vendored
|
|
@ -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(),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue