eliminate race condition with listen/watch

This commit is contained in:
Christien Rioux 2025-05-18 11:33:08 -04:00
parent 34f9bea6eb
commit 61855521dc
4 changed files with 14 additions and 13 deletions

View file

@ -32,11 +32,10 @@ class MessageReconciliation {
final activeInputQueues = await _updateAuthorInputQueues();
// Process all input queues together
await _outputCubit
.operate((reconciledArray) async => _reconcileInputQueues(
reconciledArray: reconciledArray,
activeInputQueues: activeInputQueues,
));
await _outputCubit.operate((reconciledArray) => _reconcileInputQueues(
reconciledArray: reconciledArray,
activeInputQueues: activeInputQueues,
));
});
}
@ -273,5 +272,5 @@ class MessageReconciliation {
final TableDBArrayProtobufCubit<proto.ReconciledMessage> _outputCubit;
final void Function(Object, StackTrace?) _onError;
static const int _maxReconcileChunk = 65536;
static const _maxReconcileChunk = 65536;
}