Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 1 addition & 6 deletions ee/packages/federation-matrix/src/setup.ts
Original file line number Diff line number Diff line change
Expand Up @@ -101,17 +101,12 @@ export function configureFederationMatrixSettings(settings: {
}

export async function setupFederationMatrix() {
// TODO are these required?
const mongoUri = process.env.MONGO_URL || 'mongodb://localhost:3001/meteor';
const dbName = process.env.DATABASE_NAME || new URL(mongoUri).pathname.slice(1);

const eventHandler = new Emitter<HomeserverEventSignatures>();

await init({
emitter: eventHandler,
dbConfig: {
uri: mongoUri,
name: dbName,
uri: process.env.MONGO_URL || 'mongodb://localhost:3001/meteor',
poolSize: Number.parseInt(process.env.DATABASE_POOL_SIZE || '10', 10),
},
});
Expand Down
Loading