File tree Expand file tree Collapse file tree 2 files changed +5
-3
lines changed
internal/mithril-aggregator-client/src/query Expand file tree Collapse file tree 2 files changed +5
-3
lines changed Original file line number Diff line number Diff line change @@ -11,8 +11,8 @@ pub enum QueryMethod {
11
11
Post ,
12
12
}
13
13
14
- // Todo: wasm compatibility
15
- #[ async_trait:: async_trait]
14
+ # [ cfg_attr ( target_family = " wasm" , async_trait :: async_trait ( ? Send ) ) ]
15
+ #[ cfg_attr ( not ( target_family = "wasm" ) , async_trait:: async_trait) ]
16
16
pub trait AggregatorQuery {
17
17
type Response : DeserializeOwned ;
18
18
type Body : serde:: Serialize + Sized ;
Original file line number Diff line number Diff line change 1
1
use anyhow:: anyhow;
2
+ use async_trait:: async_trait;
2
3
use reqwest:: StatusCode ;
3
4
use slog:: debug;
4
5
@@ -20,7 +21,8 @@ impl CertificateDetailsQuery {
20
21
}
21
22
}
22
23
23
- #[ async_trait:: async_trait]
24
+ #[ cfg_attr( target_family = "wasm" , async_trait( ?Send ) ) ]
25
+ #[ cfg_attr( not( target_family = "wasm" ) , async_trait) ]
24
26
impl AggregatorQuery for CertificateDetailsQuery {
25
27
type Response = Option < CertificateMessage > ;
26
28
type Body = ( ) ;
You can’t perform that action at this time.
0 commit comments