rachel-rose 5 лет назад
Родитель
Сommit
7be0a94bc3

+ 3 - 9
lisp/types.rs

@@ -142,9 +142,7 @@ impl Circuit<bls12_381::Scalar> for LispCircuit {
                                 let val = bls12_381::Scalar::from_string(&s.to_string());
                                 left = left + (val, val_b);
                             }
-                            _ => {
-                                println!("not a valid param {:?}", value)
-                            }
+                            _ => println!("not a valid param {:?}", value),
                         }
                     }
                 }
@@ -171,9 +169,7 @@ impl Circuit<bls12_381::Scalar> for LispCircuit {
                                 let val = bls12_381::Scalar::from_string(&s.to_string());
                                 right = right + (val, val_b);
                             }
-                            _ => {
-                                println!("not a valid param {:?}", value)
-                            }
+                            _ => println!("not a valid param {:?}", value),
                         }
                     }
                 }
@@ -201,9 +197,7 @@ impl Circuit<bls12_381::Scalar> for LispCircuit {
                                 let val = bls12_381::Scalar::from_string(&s.to_string());
                                 output = output + (val, val_b);
                             }
-                            _ => {
-                                println!("not a valid param {:?}", value)
-                            }
+                            _ => println!("not a valid param {:?}", value),
                         }
                     }
                 }

+ 1 - 1
src/net/protocols/protocol_address.rs

@@ -86,7 +86,7 @@ impl ProtocolAddress {
         }
     }
 
-    /// Handles receiving the get-address message. Continually recieves get-address messages on the 
+    /// Handles receiving the get-address message. Continually recieves get-address messages on the
     /// get-address subsciption. Then replies with an address message.
     async fn handle_receive_get_addrs(self: Arc<Self>) -> NetResult<()> {
         debug!(target: "net", "ProtocolAddress::handle_receive_get_addrs() [START]");

+ 1 - 1
src/net/protocols/protocol_version.rs

@@ -43,7 +43,7 @@ impl ProtocolVersion {
         })
     }
     /// Start version information exchange. Start the timer. Send version info and wait for version
-    /// acknowledgement. Wait for version info and send version acknowledgement. 
+    /// acknowledgement. Wait for version info and send version acknowledgement.
     pub async fn run(self: Arc<Self>, executor: Arc<Executor<'_>>) -> NetResult<()> {
         debug!(target: "net", "ProtocolVersion::run() [START]");
         // Start timer

+ 4 - 5
src/net/sessions/inbound_session.rs

@@ -83,10 +83,9 @@ impl InboundSession {
                 .detach();
         }
     }
-    
-    /// Registers the channel.
-    /// Performs a network handshake and starts the channel. Then starts sending keep-alive and
-    /// address messages across the channel.
+
+    /// Registers the channel. First performs a network handshake and starts the channel. Then starts
+    /// sending keep-alive and address messages across the channel.
     async fn setup_channel(
         self: Arc<Self>,
         channel: ChannelPtr,
@@ -100,7 +99,7 @@ impl InboundSession {
 
         self.attach_protocols(channel, executor).await
     }
-    
+
     /// Starts sending keep-alive and address messages across the channels.
     async fn attach_protocols(
         self: Arc<Self>,

+ 2 - 2
src/net/sessions/seed_session.rs

@@ -21,7 +21,7 @@ impl SeedSession {
         Arc::new(Self { p2p })
     }
 
-    /// Start the seed session. Creates a new task for every seed connection and 
+    /// Start the seed session. Creates a new task for every seed connection and
     /// starts the seed on each task.
     pub async fn start(self: Arc<Self>, executor: Arc<Executor<'_>>) -> NetResult<()> {
         debug!(target: "net", "SeedSession::start() [START]");
@@ -110,7 +110,7 @@ impl SeedSession {
             }
         }
     }
-    
+
     /// Starts keep-alive messages and seed protocol.
     async fn attach_protocols(
         self: Arc<Self>,