Skip to content

Commit

Permalink
fix: fmt
Browse files Browse the repository at this point in the history
  • Loading branch information
nhtyy committed Nov 20, 2024
1 parent f90d28d commit 6bab3e7
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion crates/sdk/src/install.rs
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ pub fn try_install_circuit_artifacts(artifacts_type: &str) -> PathBuf {
build_dir.display()
);
} else {
#[cfg(any(feature = "network", feature = "network-v2"))]
#[cfg(any(feature = "network", feature = "network-v2"))]
{
println!(
"[sp1] {} circuit artifacts for version {} do not exist at {}. downloading...",
Expand Down
4 changes: 1 addition & 3 deletions crates/sdk/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -368,9 +368,7 @@ impl ProverClientBuilder {
match self.mode.expect("The prover mode is required") {
ProverMode::Cpu => ProverClient::cpu(),
#[cfg(feature = "cuda")]
ProverMode::Cuda => {
ProverClient::cuda()
}
ProverMode::Cuda => ProverClient::cuda(),
#[cfg(any(feature = "network", feature = "network-v2"))]
ProverMode::Network => {
let private_key = self.private_key.expect("The private key is required");
Expand Down
5 changes: 2 additions & 3 deletions crates/sdk/src/network-v2/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ use std::time::{Duration, Instant};
use crate::{
network_v2::client::NetworkClient,
network_v2::proto::network::{ProofMode, ProofStatus, ProofStrategy},
Prover, SP1Context, SP1ProofKind, SP1ProofWithPublicValues,
SP1ProvingKey, SP1VerifyingKey,
Prover, SP1Context, SP1ProofKind, SP1ProofWithPublicValues, SP1ProvingKey, SP1VerifyingKey,
};
use anyhow::Result;
use backoff::{future::retry, ExponentialBackoff};
Expand Down Expand Up @@ -40,7 +39,7 @@ impl NetworkProver {
let client = NetworkClient::new(private_key, rpc_url);
Self { client, local_prover, skip_simulation }
}

/// Requests a proof from the prover network, returning the request ID.
pub async fn request_proof(
&self,
Expand Down
3 changes: 1 addition & 2 deletions crates/sdk/src/network/prover.rs
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,7 @@ use crate::{
client::NetworkClient,
proto::network::{ProofMode, ProofStatus},
},
Prover, SP1Context, SP1ProofKind, SP1ProofWithPublicValues,
SP1ProvingKey, SP1VerifyingKey,
Prover, SP1Context, SP1ProofKind, SP1ProofWithPublicValues, SP1ProvingKey, SP1VerifyingKey,
};
use anyhow::Result;
use sp1_core_machine::io::SP1Stdin;
Expand Down

0 comments on commit 6bab3e7

Please sign in to comment.