Accept only needed interfaces

This commit is contained in:
Till Faelligen 2023-03-16 08:26:02 +01:00
parent 0a67a32ce4
commit c06e253188
No known key found for this signature in database
GPG key ID: ACCDC9606D472758
3 changed files with 3 additions and 3 deletions

View file

@ -56,7 +56,7 @@ func NewRelayInternalAPI(
keyRing *gomatrixserverlib.KeyRing,
producer *producers.SyncAPIProducer,
relayingEnabled bool,
caches *caching.Caches,
caches caching.FederationCache,
) api.RelayInternalAPI {
cfg := &base.Cfg.RelayAPI
relayDB, err := storage.NewDatabase(base, &cfg.Database, caches, base.Cfg.Global.IsLocalServerName)

View file

@ -27,7 +27,7 @@ import (
// NewInternalAPI returns a concrete implementation of the internal API.
func NewInternalAPI(
base *base.BaseDendrite,
caches *caching.Caches,
caches caching.RoomServerCaches,
) api.RoomserverInternalAPI {
cfg := &base.Cfg.RoomServer

View file

@ -42,7 +42,7 @@ func AddPublicRoutes(
base *base.BaseDendrite,
userAPI userapi.SyncUserAPI,
rsAPI api.SyncRoomserverAPI,
caches *caching.Caches,
caches caching.LazyLoadCache,
) {
cfg := &base.Cfg.SyncAPI