summaryrefslogtreecommitdiff
path: root/internal/transport/controller.go
diff options
context:
space:
mode:
Diffstat (limited to 'internal/transport/controller.go')
-rw-r--r--internal/transport/controller.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/transport/controller.go b/internal/transport/controller.go
index 83fad8038..9055b147f 100644
--- a/internal/transport/controller.go
+++ b/internal/transport/controller.go
@@ -50,7 +50,7 @@ type controller struct {
fedDB federatingdb.DB
clock pub.Clock
client httpclient.SigningClient
- trspCache cache.Cache[string, *transport]
+ trspCache cache.TTLCache[string, *transport]
userAgent string
senders int // no. concurrent batch delivery routines.
}
@@ -76,7 +76,7 @@ func NewController(state *state.State, federatingDB federatingdb.DB, clock pub.C
fedDB: federatingDB,
clock: clock,
client: client,
- trspCache: cache.New[string, *transport](0, 100, 0),
+ trspCache: cache.NewTTL[string, *transport](0, 100, 0),
userAgent: fmt.Sprintf("%s (+%s://%s) gotosocial/%s", applicationName, proto, host, version),
senders: senders,
}