diff --git a/crates/lxmf-core/src/handlers.rs b/crates/lxmf-core/src/handlers.rs index 65e5bd3..09a759d 100644 --- a/crates/lxmf-core/src/handlers.rs +++ b/crates/lxmf-core/src/handlers.rs @@ -218,7 +218,7 @@ pub fn pn_stamp_cost_from_app_data(data: &[u8]) -> Option { /// Encode delivery-announce `app_data` as msgpack /// `[display_name, stamp_cost, supported_functionality]` where the feature -/// list advertises [`SF_COMPRESSION`](crate::constants::SF_COMPRESSION). +/// list advertises [`SF_COMPRESSION`]. /// /// `stamp_cost` must be in `1..=254`; out-of-range or `None` values are encoded as nil. /// @@ -465,8 +465,9 @@ impl PropagationRequestHandler { } /// Handle a `/get` request from a client downloading messages. Phase-2 - /// responses come back as a [`GetRequestAction::ServeFiles`] plan — the - /// embedder resolves it after releasing the node lock. + /// responses come back as a + /// [`GetRequestAction::ServeFiles`](crate::propagation_node::GetRequestAction::ServeFiles) + /// plan — the embedder resolves it after releasing the node lock. /// /// Python reference: `LXMRouter.message_get_request` — LXMRouter.py:1425-1499. pub fn handle_message_get_request( diff --git a/crates/lxmf-core/src/router.rs b/crates/lxmf-core/src/router.rs index c26ee71..bccf34a 100644 --- a/crates/lxmf-core/src/router.rs +++ b/crates/lxmf-core/src/router.rs @@ -266,11 +266,10 @@ pub struct LxmRouter { pub pending_outbound: Vec, /// Messages awaiting deferred stamp generation, keyed by message hash. pub pending_deferred_stamps: HashMap<[u8; 32], LxMessage>, - /// Captured at construction (or via [`set_runtime_handle`](Self::set_runtime_handle)) - /// so deferred-stamp PoW can spawn onto the blocking pool even when the - /// caller is itself on a `spawn_blocking` thread, where - /// `Handle::try_current()` fails. Without it the tick grinds stamps - /// inline while holding the manager lock (observed 53 s stall). + /// Captured at construction so deferred-stamp PoW can spawn onto the + /// blocking pool even when the caller is itself on a `spawn_blocking` + /// thread, where `Handle::try_current()` fails. Without it the tick grinds + /// stamps inline while holding the manager lock (observed 53 s stall). pub runtime_handle: Option, pub active_deferred_stamp: Option, /// Identities allowed for delivery. An empty list means "all allowed". diff --git a/crates/lxmf-tools/src/lxmd_cli.rs b/crates/lxmf-tools/src/lxmd_cli.rs index 5cce1cd..5e633e7 100644 --- a/crates/lxmf-tools/src/lxmd_cli.rs +++ b/crates/lxmf-tools/src/lxmd_cli.rs @@ -94,7 +94,7 @@ pub struct Args { #[arg(long, value_name = "PATH")] pub identity: Option, - /// Send a single message and exit: --send + /// Send a single message and exit: `--send `. #[arg(long, num_args = 1..=2, value_names = ["DEST_HASH", "CONTENT"])] pub send: Option>,