Skip to content

Commit

Permalink
clippy
Browse files Browse the repository at this point in the history
  • Loading branch information
oxarbitrage committed Nov 20, 2024
1 parent 5ec720c commit 734b250
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
6 changes: 4 additions & 2 deletions zebra-rpc/src/server.rs
Original file line number Diff line number Diff line change
Expand Up @@ -214,8 +214,10 @@ impl RpcServer {
.merge(get_block_template_rpc_impl.into_rpc())
.unwrap();

let server_task: JoinHandle<Result<(), tower::BoxError>> =
tokio::spawn(async move { Ok(server_instance.start(rpc_module).stopped().await) });
let server_task: JoinHandle<Result<(), tower::BoxError>> = tokio::spawn(async move {
server_instance.start(rpc_module).stopped().await;
Ok(())
});
Ok(server_task)
}

Expand Down
2 changes: 1 addition & 1 deletion zebra-rpc/src/server/tests/vectors.rs
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,7 @@ async fn rpc_server_spawn_unallocated_port(parallel_cpu_threads: bool, do_shutdo
block_verifier_router.expect_no_requests().await;

if do_shutdown {
let _ = rpc_server_task_handle.abort();
rpc_server_task_handle.abort();
}
}

Expand Down

0 comments on commit 734b250

Please sign in to comment.