mirror of
https://gitlab.com/veilid/veilidchat.git
synced 2025-08-01 10:46:10 -04:00
eliminate race condition with listen/watch
This commit is contained in:
parent
34f9bea6eb
commit
61855521dc
4 changed files with 14 additions and 13 deletions
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue