Skip to content

Commit 4522f26

Browse files
committed
Dedup wasm/non-wasm code in proofs/provers.rs
Just use `async` methods everywhere, and poll manually the future in non-wasm context
1 parent 66d89b2 commit 4522f26

File tree

3 files changed

+114
-274
lines changed

3 files changed

+114
-274
lines changed

ledger/src/proofs/circuit_blobs.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn git_release_url(filename: &impl AsRef<Path>) -> String {
5353
}
5454

5555
#[cfg(not(target_family = "wasm"))]
56-
pub fn fetch(filename: &impl AsRef<Path>) -> std::io::Result<Vec<u8>> {
56+
pub async fn fetch(filename: &impl AsRef<Path>) -> std::io::Result<Vec<u8>> {
5757
use std::path::PathBuf;
5858

5959
fn try_base_dir<P: Into<PathBuf>>(base_dir: P, filename: &impl AsRef<Path>) -> Option<PathBuf> {

0 commit comments

Comments
 (0)