remove unnecessary clone

This commit is contained in:
Morty
2025-01-22 17:22:07 +08:00
parent 7c57b0aa28
commit ef15752891
3 changed files with 6 additions and 11 deletions

2
prover/Cargo.lock generated
View File

@@ -4230,7 +4230,7 @@ checksum = "94143f37725109f92c262ed2cf5e59bce7498c01bcc1502d7b9afe439a4e9f49"
[[package]]
name = "scroll-proving-sdk"
version = "0.1.0"
source = "git+https://github.com/scroll-tech/scroll-proving-sdk.git?rev=92634c6#92634c65988eb7d7890759adb7ca1f1481fa41b8"
source = "git+https://github.com/scroll-tech/scroll-proving-sdk.git?rev=7f8dca4#7f8dca4f6af29995fed4ea45048e30a8784e1b6d"
dependencies = [
"anyhow",
"async-trait",

View File

@@ -31,7 +31,7 @@ halo2_proofs = { git = "https://github.com/scroll-tech/halo2.git", branch = "v1.
snark-verifier-sdk = { git = "https://github.com/scroll-tech/snark-verifier", branch = "develop", default-features = false, features = ["loader_halo2", "loader_evm", "halo2-pse"] }
prover_darwin = { git = "https://github.com/scroll-tech/zkevm-circuits.git", tag = "v0.12.2", package = "prover", default-features = false, features = ["parallel_syn", "scroll"] }
prover_darwin_v2 = { git = "https://github.com/scroll-tech/zkevm-circuits.git", tag = "v0.13.1", package = "prover", default-features = false, features = ["parallel_syn", "scroll"] }
scroll-proving-sdk = { git = "https://github.com/scroll-tech/scroll-proving-sdk.git", rev = "92634c6"}
scroll-proving-sdk = { git = "https://github.com/scroll-tech/scroll-proving-sdk.git", rev = "7f8dca4"}
base64 = "0.13.1"
reqwest = { version = "0.12.4", features = ["gzip"] }
reqwest-middleware = "0.3"

View File

@@ -60,7 +60,7 @@ impl ProvingService for LocalProver {
.get_circuits_handler(&req.hard_fork_name, self.prover_types.clone())
.expect("failed to get circuit handler");
match self.do_prove(req.clone(), handler).await {
match self.do_prove(req, handler).await {
Ok(resp) => resp,
Err(e) => ProveResponse {
status: TaskStatus::Failed,
@@ -151,17 +151,12 @@ impl LocalProver {
Ok(ProveResponse {
task_id: task_id.to_string(),
circuit_type: req.circuit_type,
circuit_version: req.circuit_version.clone(),
hard_fork_name: req.hard_fork_name.clone(),
circuit_version: req.circuit_version,
hard_fork_name: req.hard_fork_name,
status: TaskStatus::Proving,
created_at,
started_at: None,
finished_at: None,
compute_time_sec: None,
input: Some(req.input),
proof: None,
vk: None,
error: None,
..Default::default()
})
}
}