Pārlūkot izejas kodu

Add a TODO and mark different behaviors of random drop.

Jing Yang 4 gadi atpakaļ
vecāks
revīzija
28a127103f
1 mainītis faili ar 1 papildinājumiem un 0 dzēšanām
  1. 1 0
      src/network.rs

+ 1 - 0
src/network.rs

@@ -235,6 +235,7 @@ impl Network {
             if !reliable
                 && thread_rng().gen_ratio(Self::DROP_RATE.0, Self::DROP_RATE.1)
             {
+                // TODO(ditsing): add a real delay to random drop like above.
                 let _ = rpc.reply_channel.send(Err(std::io::Error::new(
                     std::io::ErrorKind::TimedOut,
                     "The network did not send respond in time.",