Skip to content

Commit

Permalink
sync with the latest foundry code changes
Browse files Browse the repository at this point in the history
  • Loading branch information
SashaZezulinsky committed Jan 17, 2024
1 parent 52cdcb8 commit 0e498e8
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions shuttle/src/server/mod.rs
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
//! Contains the code to launch an ethereum RPC-Server
use crate::EthApi;
use shuttle_server::{ipc::IpcEndpoint, AnvilServer, ServerConfig};
use futures::StreamExt;
use handler::{HttpEthRpcHandler, PubSubEthRpcHandler};
use shuttle_server::{ipc::IpcEndpoint, AnvilServer, ServerConfig};
use std::net::SocketAddr;
use tokio::{io, task::JoinHandle};
use tracing::trace;
Expand Down Expand Up @@ -35,10 +35,11 @@ pub fn try_spawn_ipc(
let path = path.into();
let handler = PubSubEthRpcHandler::new(api);
let ipc = IpcEndpoint::new(handler, path);
let mut incoming = ipc.incoming()?;
let incoming = ipc.incoming()?;

let task = tokio::task::spawn(async move {
while let Some(stream) = Box::pin(incoming.next()).await {
tokio::pin!(incoming);
while let Some(stream) = incoming.next().await {
trace!(target: "ipc", "new ipc connection");
tokio::task::spawn(stream);
}
Expand Down

0 comments on commit 0e498e8

Please sign in to comment.