Browse Source
Fully-qualify async_trait macro
contact-taker-before-changing-cfd-state
Thomas Eizinger
3 years ago
No known key found for this signature in database
GPG Key ID: 651AC83A6C6C8B96
4 changed files with
1 additions and
4 deletions
-
daemon/src/maker_inc_connections.rs
-
xtra_productivity/src/lib.rs
-
xtra_productivity/tests/pass/actor_with_generics.rs
-
xtra_productivity/tests/pass/can_handle_message.rs
|
|
@ -3,7 +3,6 @@ use crate::model::cfd::{Order, OrderId}; |
|
|
|
use crate::model::{BitMexPriceEventId, TakerId}; |
|
|
|
use crate::{forward_only_ok, maker_cfd, send_to_socket, wire}; |
|
|
|
use anyhow::{Context as AnyhowContext, Result}; |
|
|
|
use async_trait::async_trait; |
|
|
|
use futures::{StreamExt, TryStreamExt}; |
|
|
|
use std::collections::HashMap; |
|
|
|
use std::io; |
|
|
|
|
|
@ -65,7 +65,7 @@ pub fn xtra_productivity(_attribute: TokenStream, item: TokenStream) -> TokenStr |
|
|
|
type Result = #result_type; |
|
|
|
} |
|
|
|
|
|
|
|
#[async_trait] |
|
|
|
#[async_trait::async_trait] |
|
|
|
impl<#generic_params> xtra::Handler<#message_type> for #actor |
|
|
|
where |
|
|
|
#additional_bounds |
|
|
|
|
|
@ -1,4 +1,3 @@ |
|
|
|
use async_trait::async_trait; |
|
|
|
use std::marker::PhantomData; |
|
|
|
use xtra_productivity::xtra_productivity; |
|
|
|
|
|
|
|
|
|
@ -1,4 +1,3 @@ |
|
|
|
use async_trait::async_trait; |
|
|
|
use xtra::spawn::TokioGlobalSpawnExt; |
|
|
|
use xtra::Actor; |
|
|
|
use xtra_productivity::xtra_productivity; |
|
|
|