Skip to content

Commit

Permalink
Put the sp1 worker code behind the sp1 feature in the host
Browse files Browse the repository at this point in the history
  • Loading branch information
Champii committed Jul 2, 2024
1 parent 94fd92c commit 4aa8f97
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions host/src/server/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,12 @@ use tokio::net::TcpListener;
use tracing::info;

pub mod api;
#[cfg(feature = "sp1")]
pub mod worker;

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

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

0 comments on commit 4aa8f97

Please sign in to comment.