Skip to content

Commit

Permalink
chore: rabbit's feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
lklimek committed Oct 9, 2024
1 parent f58e08c commit 4c004a7
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions packages/rs-sdk/src/mock/sdk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ impl MockDashPlatformSdk {
/// Load all expectations from files in a directory asynchronously.
///
/// See [MockDashPlatformSdk::load_expectations_sync()] for more details.
#[deprecated(note = "use load_expectations_sync")]
#[deprecated(since = "1.4.0", note = "use load_expectations_sync")]
pub async fn load_expectations<P: AsRef<std::path::Path> + Send + 'static>(
&mut self,
dir: P,
Expand Down Expand Up @@ -317,13 +317,16 @@ impl MockDashPlatformSdk {
objects: Option<R>,
) -> Result<&mut Self, Error>
where
R: FromIterator<(K, Option<O>)> + MockResponse + Send + Default + MockResponse,
<<O as FetchMany<K, R>>::Request as TransportRequest>::Response: Default,
R: FromProof<
R: FromIterator<(K, Option<O>)>
+ MockResponse
+ FromProof<
<O as FetchMany<K, R>>::Request,
Request = <O as FetchMany<K, R>>::Request,
Response = <<O as FetchMany<K, R>>::Request as TransportRequest>::Response,
> + Sync,
> + Sync
+ Send
+ Default,
<<O as FetchMany<K, R>>::Request as TransportRequest>::Response: Default,
{
let grpc_request = query.query(self.prove()).expect("query must be correct");
self.expect(grpc_request, objects).await?;
Expand Down

0 comments on commit 4c004a7

Please sign in to comment.