diff --git a/build/gobind/monolith.go b/build/gobind/monolith.go index 4f8681db2..e778764ca 100644 --- a/build/gobind/monolith.go +++ b/build/gobind/monolith.go @@ -131,7 +131,7 @@ func (m *DendriteMonolith) Start() { ) asAPI := appservice.NewInternalAPI(base, userAPI, rsAPI) - stateAPI := currentstateserver.NewInternalAPI(base.Cfg, base.KafkaConsumer) + stateAPI := currentstateserver.NewInternalAPI(&base.Cfg.CurrentStateServer, base.KafkaConsumer) fsAPI := federationsender.NewInternalAPI( base, federation, rsAPI, stateAPI, keyRing, )