Explorar o código

drk: Output a little note when subscribing for block notifications.

parazyd %!s(int64=3) %!d(string=hai) anos
pai
achega
8a1f640912
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      bin/drk/src/rpc_blockchain.rs

+ 1 - 0
bin/drk/src/rpc_blockchain.rs

@@ -65,6 +65,7 @@ impl Drk {
         let req = JsonRequest::new("blockchain.subscribe_blocks", json!([]));
         let req = JsonRequest::new("blockchain.subscribe_blocks", json!([]));
         task::spawn(async move { rpc_client.subscribe(req, subscriber).await.unwrap() });
         task::spawn(async move { rpc_client.subscribe(req, subscriber).await.unwrap() });
         eprintln!("Detached subscription to background");
         eprintln!("Detached subscription to background");
+        eprintln!("All is good. Waiting for block notifications...");
 
 
         let e = loop {
         let e = loop {
             match subscription.receive().await {
             match subscription.receive().await {