Skip to content

Commit fbec900

Browse files
committed
use send_to_client more
1 parent fff6aad commit fbec900

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

crates/core/src/subscription/module_subscription_manager.rs

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1475,15 +1475,13 @@ impl SendWorker {
14751475
tx_offset,
14761476
message,
14771477
} => match tx_offset {
1478-
None => {
1479-
let _ = recipient.send_message(None, message);
1480-
}
1478+
None => send_to_client(&recipient, None, message),
14811479
Some(tx_offset) => {
14821480
let Ok(tx_offset) = tx_offset.await else {
14831481
tracing::error!("tx offset sender dropped, exiting send worker");
14841482
return;
14851483
};
1486-
let _ = recipient.send_message(Some(tx_offset), message);
1484+
send_to_client(&recipient, Some(tx_offset), message);
14871485
}
14881486
},
14891487
SendWorkerMessage::RemoveClient(client_id) => {

crates/datastore/src/locking_tx_datastore/mut_tx.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1693,7 +1693,7 @@ impl MutTxId {
16931693
//
16941694
// Note that technically the tx could have run against an empty database,
16951695
// in which case we'd wrongly return zero (a non-existent transaction).
1696-
// This doesn not happen in practice, however, as [RelationalDB::set_initialized]
1696+
// This doesn't happen in practice, however, as [RelationalDB::set_initialized]
16971697
// creates a transaction.
16981698
let tx_offset = if tx_offset == self.committed_state_write_lock.next_tx_offset {
16991699
tx_offset.saturating_sub(1)

0 commit comments

Comments
 (0)