Skip to content

Commit 4aa8f97

Browse files
committed
Put the sp1 worker code behind the sp1 feature in the host
1 parent 94fd92c commit 4aa8f97

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

host/src/server/mod.rs

+2
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,12 @@ use tokio::net::TcpListener;
55
use tracing::info;
66

77
pub mod api;
8+
#[cfg(feature = "sp1")]
89
pub mod worker;
910

1011
/// Starts the proverd server.
1112
pub async fn serve(state: ProverState) -> anyhow::Result<()> {
13+
#[cfg(feature = "sp1")]
1214
worker::serve(state.clone()).await;
1315

1416
let addr = SocketAddr::from_str(&state.opts.address)

0 commit comments

Comments
 (0)