mirror of
https://github.com/matrix-org/dendrite.git
synced 2026-01-16 18:43:10 -06:00
Accept only needed interfaces
This commit is contained in:
parent
0a67a32ce4
commit
c06e253188
|
|
@ -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)
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue