temp fix: changed field order to workaround bug in libp2p

This commit is contained in:
Addy Bryant 2022-03-18 11:54:06 -04:00 committed by Joonas Koivunen
parent 25c8d583fc
commit 3b5919397b

View File

@ -25,17 +25,17 @@ use tokio::task;
#[derive(libp2p::NetworkBehaviour)]
#[behaviour(event_process = true)]
pub struct Behaviour<Types: IpfsTypes> {
#[behaviour(ignore)]
repo: Arc<Repo<Types>>,
// mdns: Toggle<TokioMdns>,
kademlia: Kademlia<MemoryStore>,
#[behaviour(ignore)]
kad_subscriptions: SubscriptionRegistry<KadResult, String>,
bitswap: Bitswap,
ping: Ping,
identify: Identify,
pubsub: Pubsub,
pub swarm: SwarmApi,
#[behaviour(ignore)]
repo: Arc<Repo<Types>>,
#[behaviour(ignore)]
kad_subscriptions: SubscriptionRegistry<KadResult, String>,
}
/// Represents the result of a Kademlia query.