Skip to content

Fix Arc::clone() typos #169

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Oct 11, 2022
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions docs/tutorials/build_a_node_in_rust.md
Original file line number Diff line number Diff line change
Expand Up @@ -506,7 +506,7 @@ let network_graph = Arc::new(NetworkGraph::new(genesis_hash))
let net_graph_msg_handler = Arc::new(NetGraphMsgHandler::new(
Arc::clone(&network_graph),
None::<Arc<dyn chain::Access + Send + Sync>>,
Arc:clone(&logger),
Arc::clone(&logger),
));
```

Expand Down Expand Up @@ -716,7 +716,7 @@ let scorer = Arc::new(Mutex::new(ProbabilisticScorer::new(params, Arc::clone(&ne
**What it's used for:** to create an invoice payer that retries failed payment paths.

```rust
let router = DefaultRouter::new(Arc:clone(&network_graph), &logger, keys_manager.get_secure_random_bytes());
let router = DefaultRouter::new(Arc::clone(&network_graph), &logger, keys_manager.get_secure_random_bytes());

let invoice_payer = InvoicePayer::new(
Arc::clone(&channel_manager),
Expand Down Expand Up @@ -781,8 +781,8 @@ let background_processor = BackgroundProcessor::start(
Arc::clone(&chain_monitor),
Arc::clone(&channel_manager),
Arc::clone(&net_graph_msg_handler),
Arc:clone(&peer_manager),
Arc:clone(&logger),
Arc::clone(&peer_manager),
Arc::clone(&logger),
);
```

Expand Down