Add comments

This commit is contained in:
Andras Schmelczer 2025-03-29 09:41:33 +00:00
parent e6f05e42be
commit a249919061
No known key found for this signature in database
GPG key ID: FC8F2C3D3D1A718C
2 changed files with 3 additions and 1 deletions

View file

@ -22,7 +22,7 @@ thiserror = { version = "1.0.66", default-features = false }
codegen-units = 1
lto = true
opt-level = 3
strip="debuginfo"
strip="debuginfo" # Keep some info for better panics
[workspace.lints.rust]
unsafe_code = "forbid"

View file

@ -29,6 +29,8 @@ impl Broadcasts {
tx.subscribe()
}
/// Sent a document update to all clients subscribed to the vault.
/// We ignore & log failures.
pub async fn send(&self, vault: VaultId, document: DocumentVersionWithoutContent) {
let tx = self.get_or_create(vault).await;