Sfoglia il codice sorgente

bin/irc-raft: update error definitions

aggstam 4 anni fa
parent
commit
641f7c5aad
2 ha cambiato i file con 2 aggiunte e 2 eliminazioni
  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),
                 Ok((s, a)) => (s, a),
                 Err(e) => {
                 Err(e) => {
                     error!("Failed listening for connections: {}", 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" => {
             "QUIT" => {
                 // Close the connection
                 // Close the connection
-                return Err(Error::ServiceStopped)
+                return Err(Error::NetworkServiceStopped)
             }
             }
             _ => {
             _ => {
                 warn!("Unimplemented `{}` command", command);
                 warn!("Unimplemented `{}` command", command);