Forráskód Böngészése

bin/irc-raft: update error definitions

aggstam 4 éve
szülő
commit
641f7c5aad
2 módosított fájl, 2 hozzáadás és 2 törlés
  1. 1 1
      bin/irc-raft/src/main.rs
  2. 1 1
      bin/irc-raft/src/server.rs

+ 1 - 1
bin/irc-raft/src/main.rs

@@ -222,7 +222,7 @@ async fn realmain(settings: Args, executor: Arc<Executor<'_>>) -> Result<()> {
                 Ok((s, a)) => (s, a),
                 Err(e) => {
                     error!("Failed listening for connections: {}", e);
-                    return Err(Error::ServiceStopped)
+                    return Err(Error::NetworkServiceStopped)
                 }
             };
 

+ 1 - 1
bin/irc-raft/src/server.rs

@@ -173,7 +173,7 @@ impl IrcServerConnection {
             }
             "QUIT" => {
                 // Close the connection
-                return Err(Error::ServiceStopped)
+                return Err(Error::NetworkServiceStopped)
             }
             _ => {
                 warn!("Unimplemented `{}` command", command);