Skip to content

Commit

Permalink
I didn't mean to commit this yet
Browse files Browse the repository at this point in the history
  • Loading branch information
progval authored and spb committed Oct 26, 2024
1 parent 245417d commit c9341c6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion sable_server/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -236,7 +236,7 @@ where
{
if let Some(request) = request
{
let response = server.handle_remote_command(request.req).await;
let response = server.handle_remote_command(request.req);
if let Err(e) = request.response.send(response)
{
tracing::error!(?e, "Couldn't send response to remote command");
Expand Down
5 changes: 1 addition & 4 deletions sable_server/src/server_type.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,5 @@ pub trait ServerType: Send + Sync + Sized + 'static {
) -> std::io::Result<Self>;

/// Handle a request originating from a remote server
fn handle_remote_command(
&self,
request: RemoteServerRequestType,
) -> impl Future<Output = RemoteServerResponse> + Send;
fn handle_remote_command(&self, request: RemoteServerRequestType) -> RemoteServerResponse;
}

0 comments on commit c9341c6

Please sign in to comment.