From e4855d7afa8f1faae184e2b56df40649f6dac930 Mon Sep 17 00:00:00 2001
From: Yaroslav Dynnikov <yaroslav.dynnikov@gmail.com>
Date: Mon, 18 Apr 2022 15:00:01 +0300
Subject: [PATCH] Remove unnecessary comments

---
 src/discovery.rs | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/src/discovery.rs b/src/discovery.rs
index a35640bb5b..be1f793666 100644
--- a/src/discovery.rs
+++ b/src/discovery.rs
@@ -203,17 +203,7 @@ fn discovery() -> MutexGuard<'static, Discovery> {
         .lock()
 }
 
-pub fn init_global(
-    peers: impl IntoIterator<Item = impl Into<Address>>,
-    // make_request: impl Fn(Request, &Address) -> Response,
-) {
-    // make_request = fn rpc_discover(
-    //     request: discovery::Request,
-    //     address: &discovery::Address,
-    // ) -> discovery::Response {
-    //     net_box_repeat_call_until_succeed(address, ".discover", (request, address))
-    // }
-
+pub fn init_global(peers: impl IntoIterator<Item = impl Into<Address>>) {
     let d = Discovery::new(Uuid::random().to_string(), peers);
     unsafe { DISCOVERY = Box::leak(Box::new(Some(Mutex::new(d)))) }
 }
-- 
GitLab