Remove async_trait
This commit is contained in:
parent
1744f0c101
commit
573185bcfa
5 changed files with 0 additions and 5 deletions
|
|
@ -19,7 +19,6 @@ use tracing::trace;
|
|||
|
||||
use crate::{read_buf::ReadBuf, spawn_utils::BlockingSpawner};
|
||||
|
||||
#[async_trait::async_trait]
|
||||
pub trait PeerConnectionHandler {
|
||||
fn on_connected(&self, _connection_time: Duration) {}
|
||||
fn get_have_bytes(&self) -> u64;
|
||||
|
|
|
|||
|
|
@ -141,7 +141,6 @@ struct Handler {
|
|||
locked: RwLock<Option<HandlerLocked>>,
|
||||
}
|
||||
|
||||
#[async_trait::async_trait]
|
||||
impl PeerConnectionHandler for Handler {
|
||||
fn get_have_bytes(&self) -> u64 {
|
||||
0
|
||||
|
|
|
|||
|
|
@ -824,7 +824,6 @@ struct PeerHandler {
|
|||
tx: PeerTx,
|
||||
}
|
||||
|
||||
#[async_trait::async_trait]
|
||||
impl<'a> PeerConnectionHandler for &'a PeerHandler {
|
||||
fn on_connected(&self, connection_time: Duration) {
|
||||
self.counters
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue