Skip to content

Commit

Permalink
client: improve doc formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
Twey committed Nov 26, 2024
1 parent 7d547a7 commit ca4c47c
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions client/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ use serde::ser::Serialize as _;
use wasm_bindgen::prelude::*;
use web_sys::{js_sys, wasm_bindgen};

// TODO(12): convert to IndexedDbStore once we refactor Context
// TODO(#12): convert to IndexedDbStore once we refactor Context
type WebStorage =
linera_storage::DbStorage<linera_views::memory::MemoryStore, linera_storage::WallClock>;

Expand All @@ -40,7 +40,7 @@ type ClientContext = linera_client::client_context::ClientContext<WebStorage, Pe
type ChainClient =
linera_core::client::ChainClient<linera_rpc::node_provider::NodeProvider, WebStorage>;

// TODO(13): get from user
// TODO(#13): get from user
pub const OPTIONS: ClientOptions = ClientOptions {
send_timeout: std::time::Duration::from_millis(4000),
recv_timeout: std::time::Duration::from_millis(4000),
Expand Down Expand Up @@ -93,9 +93,9 @@ impl JsWallet {
}
}

/// The full client API, exposed to the wallet implementation. Calls
/// The full client API, exposed to the wallet implementation. Calls
/// to this API can be trusted to have originated from the user's
/// request. This struct is the backend for the extension itself
/// request. This struct is the backend for the extension itself
/// (side panel, option page, et cetera).
#[wasm_bindgen]
#[derive(Clone)]
Expand All @@ -107,7 +107,7 @@ pub struct Client {
}

/// The subset of the client API that should be exposed to application
/// frontends. Any function exported here with `wasm_bindgen` can be
/// frontends. Any function exported here with `wasm_bindgen` can be
/// called by untrusted Web pages, and so inputs must be verified and
/// outputs must not leak sensitive information without user
/// confirmation.
Expand Down

0 comments on commit ca4c47c

Please sign in to comment.