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 {
1111 Post ,
1212}
1313
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) ]
1616pub trait AggregatorQuery {
1717 type Response : DeserializeOwned ;
1818 type Body : serde:: Serialize + Sized ;
Original file line number Diff line number Diff line change 11use anyhow:: anyhow;
2+ use async_trait:: async_trait;
23use reqwest:: StatusCode ;
34use slog:: debug;
45
@@ -20,7 +21,8 @@ impl CertificateDetailsQuery {
2021 }
2122}
2223
23- #[ async_trait:: async_trait]
24+ #[ cfg_attr( target_family = "wasm" , async_trait( ?Send ) ) ]
25+ #[ cfg_attr( not( target_family = "wasm" ) , async_trait) ]
2426impl AggregatorQuery for CertificateDetailsQuery {
2527 type Response = Option < CertificateMessage > ;
2628 type Body = ( ) ;
You can’t perform that action at this time.
0 commit comments