Explorar o código

bin/irc-raft: update error definitions

aggstam %!s(int64=4) %!d(string=hai) anos
pai
achega
641f7c5aad
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  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);