/// Inform the swarm that this node is currently a
/// provider of the artifact with the specified `hash`.
Inform the swarm that this node is currently a
provider of the artifact with the specified `hash`.
Inform the swarm that this node is currently a provider of the artifact with the specified ` hash ` .
pub async fn provide(&mut self, hash: &str) {
        debug!("p2p::Client::provide {:?}", hash);
        let (sender, receiver) = oneshot::channel();
        self.sender
            .send(Command::Provide {
                hash: String::from(hash),
                sender,
            })
            .await
            .expect("Command receiver not to be dropped.");
        receiver.await.expect("Sender not to be dropped.")
    }
pub async fn provide ( & mut self , hash : & str ) { debug ! ( " " hash ) ; let ( sender , receiver ) = oneshot :: channel ( ) ; self . sender . send ( Command :: Provide { hash : String :: from ( hash ) , sender , } ) . await . expect ( " " ) ; receiver . await . expect ( " " ) }
Inform the swarm that this node is currently a
provider of the artifact with the specified `hash`.
Inform the swarm that this node is currently a provider of the artifact with the specified ` hash ` .
&mut self
hash
&str