Unverified Commit 500934c5 authored by Bastian Köcher's avatar Bastian Köcher Committed by GitHub
Browse files

Adds a comment as requested (#1922)



* Adds a comment as requested

* Update node/core/bitfield-signing/src/lib.rs
Co-authored-by: Fedor Sakharov's avatarFedor Sakharov <fedor.sakharov@gmail.com>
Co-authored-by: Fedor Sakharov's avatarFedor Sakharov <fedor.sakharov@gmail.com>
parent 1765a62a
Pipeline #113320 passed with stages
in 19 minutes and 57 seconds
......@@ -210,6 +210,10 @@ async fn construct_availability_bitfield(
let availability_cores = get_availability_cores(relay_parent, sender).await?;
// Wrap the sender in a Mutex to share it between the futures.
//
// We use a `Mutex` here to not `clone` the sender inside the future, because
// cloning the sender will always increase the capacity of the channel by one.
// (for the lifetime of the sender)
let sender = Mutex::new(sender);
// Handle all cores concurrently
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment