fix: Make the CrdtDatabase class ephemeral (#82)

This commit is contained in:
Marcelo Mendonça Soares 2026-06-24 01:18:23 -03:00 • committed by GitHub
commit 517abde4a1
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -15,12 +15,7 @@ Future<void> run(List<String> args) async {
Protocol(),
Endpoints(),
authenticationHandler: demoAuthenticationHandler,
// TODO: Remove the duplicate [syncTables] argument from here and the
// [initializeCrdtSync] call below.
databaseInterceptor: (_, inner) => CrdtDatabase(
inner,
syncTables: demoSyncTables,
),
databaseInterceptor: crdtDatabaseInterceptor,
)..initializeCrdtSync(syncTables: demoSyncTables);
// Start the server.