diff --git a/abci/src/application.rs b/abci/src/application.rs index 88812d94..c16935f1 100644 --- a/abci/src/application.rs +++ b/abci/src/application.rs @@ -1,5 +1,4 @@ //! ABCI application interface. -use std::panic::RefUnwindSafe; use tracing::debug; @@ -139,7 +138,7 @@ pub trait Application { } } -pub trait RequestDispatcher: RefUnwindSafe { +pub trait RequestDispatcher { /// Executes the relevant application method based on the type of the /// request, and produces the corresponding response. /// @@ -149,7 +148,7 @@ pub trait RequestDispatcher: RefUnwindSafe { } // Implement `RequestDispatcher` for all `Application`s. -impl RequestDispatcher for A { +impl RequestDispatcher for A { fn handle(&self, request: abci::Request) -> Option { tracing::trace!(?request, "received request"); diff --git a/abci/src/server.rs b/abci/src/server.rs index eb70d5bf..cc758133 100644 --- a/abci/src/server.rs +++ b/abci/src/server.rs @@ -6,7 +6,6 @@ mod unix; use std::{ io::{Read, Write}, net::{IpAddr, SocketAddr, SocketAddrV4, SocketAddrV6}, - panic::RefUnwindSafe, str::FromStr, }; @@ -24,7 +23,7 @@ pub(crate) const DEFAULT_SERVER_READ_BUF_SIZE: usize = 1024 * 1024; /// Use [`Server::handle_connection()`] to accept connection and process all /// traffic in this connection. Each incoming connection will be processed using /// `app`. -pub trait Server: RefUnwindSafe { +pub trait Server { /// Process one incoming connection. /// /// Returns when the connection is terminated or RequestDispatcher returns