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, keyRing *gomatrixserverlib.KeyRing,
producer *producers.SyncAPIProducer, producer *producers.SyncAPIProducer,
relayingEnabled bool, relayingEnabled bool,
caches *caching.Caches, caches caching.FederationCache,
) api.RelayInternalAPI { ) api.RelayInternalAPI {
cfg := &base.Cfg.RelayAPI cfg := &base.Cfg.RelayAPI
relayDB, err := storage.NewDatabase(base, &cfg.Database, caches, base.Cfg.Global.IsLocalServerName) 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. // NewInternalAPI returns a concrete implementation of the internal API.
func NewInternalAPI( func NewInternalAPI(
base *base.BaseDendrite, base *base.BaseDendrite,
caches *caching.Caches, caches caching.RoomServerCaches,
) api.RoomserverInternalAPI { ) api.RoomserverInternalAPI {
cfg := &base.Cfg.RoomServer cfg := &base.Cfg.RoomServer

View file

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