Skip to content

Commit

Permalink
fix:ci build error
Browse files Browse the repository at this point in the history
  • Loading branch information
kukkok3 committed Oct 4, 2023
1 parent 7014f12 commit 10ea6d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/vit-testing/valgrind/src/bin/valgrind.rs
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ async fn main() {

let block0_content = server_stub.block0();

let block0 = warp::path!("block0").map(move || Ok(block0_content.clone()));
let block0 = warp::path!("block0").map(move || block0_content.clone());

root.and(
proposals
Expand Down
4 changes: 3 additions & 1 deletion src/vit-testing/vitup/src/mode/mock/rest/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,9 @@ pub async fn start_rest_server(context: ContextLock) -> Result<(), Error> {
let span = span!(Level::INFO, "rest api call received");
let _enter = span.enter();
tracing::info!("get block0");
Ok::<Vec<u8>>(context.read().unwrap().block0_bin())
//unwrapping is ok because this is a test module
let context_result = context.read().unwrap();
context_result.block0_bin()
})
.with(warp::reply::with::headers(default_headers()));

Expand Down

0 comments on commit 10ea6d4

Please sign in to comment.