Skip to content

Commit

Permalink
chore: update ceramic http client (#173)
Browse files Browse the repository at this point in the history
  • Loading branch information
dav1do authored May 16, 2024
1 parent 4e466b4 commit bd3797d
Show file tree
Hide file tree
Showing 3 changed files with 57 additions and 92 deletions.
144 changes: 54 additions & 90 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion runner/src/scenario/ceramic/anchor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,8 @@ async fn auth_header(url: String, controller: String, digest: Cid) -> Result<Str
let signer = JwkSigner::new(DidDocument::new(controller.as_str()), &node_private_key)
.await
.unwrap();
let auth_jws = Jws::for_data(&signer, &auth_payload).await?;
let auth_jws = Jws::builder(&signer).build_for_data(&auth_payload).await?;

let (sig, protected) = auth_jws
.signatures
.first()
Expand Down
2 changes: 1 addition & 1 deletion runner/src/scenario/ceramic/model_instance.rs
Original file line number Diff line number Diff line change
Expand Up @@ -641,7 +641,7 @@ impl ModelInstanceRequests {
Ok(resp.stream_id)
}

pub async fn create_model_instance<T: serde::Serialize>(
pub async fn create_model_instance<T: serde::Serialize + Send + Sync>(
user: &mut GooseUser,
cli: &CeramicClient,
model: &StreamId,
Expand Down

0 comments on commit bd3797d

Please sign in to comment.