Преглед изворни кода

protocol_seed: fix bool syntax

lunar-mining пре 2 година
родитељ
комит
2dbaf413a0
1 измењених фајлова са 1 додато и 1 уклоњено
  1. 1 1
      src/net/protocol/protocol_seed.rs

+ 1 - 1
src/net/protocol/protocol_seed.rs

@@ -72,7 +72,7 @@ impl ProtocolSeed {
         }
         }
 
 
         // Do nothing if advertise is set to false
         // Do nothing if advertise is set to false
-        if self.settings.advertise == false {
+        if !self.settings.advertise {
             debug!(target: "net::protocol_seed::send_my_addrs()",
             debug!(target: "net::protocol_seed::send_my_addrs()",
             "Advertise is set to false. Stopping");
             "Advertise is set to false. Stopping");
             return Ok(())
             return Ok(())