@@ -25,6 +25,7 @@ use util::ser::{VecWriter, Writeable, Writer};
25
25
use ln:: peer_channel_encryptor:: { PeerChannelEncryptor , NextNoiseStep } ;
26
26
use ln:: wire;
27
27
use ln:: wire:: Encode ;
28
+ use onion_message:: { SimpleArcOnionMessenger , SimpleRefOnionMessenger } ;
28
29
use routing:: gossip:: { NetworkGraph , P2PGossipSync } ;
29
30
use util:: atomic_counter:: AtomicCounter ;
30
31
use util:: crypto:: sign;
@@ -459,8 +460,8 @@ impl Peer {
459
460
/// SimpleRefPeerManager is the more appropriate type. Defining these type aliases prevents
460
461
/// issues such as overly long function definitions.
461
462
///
462
- /// (C-not exported) as Arcs don't make sense in bindings
463
- pub type SimpleArcPeerManager < SD , M , T , F , C , L > = PeerManager < SD , Arc < SimpleArcChannelManager < M , T , F , L > > , Arc < P2PGossipSync < Arc < NetworkGraph < Arc < L > > > , Arc < C > , Arc < L > > > , IgnoringMessageHandler , Arc < L > , Arc < IgnoringMessageHandler > > ;
463
+ /// (C-not exported) as `Arc`s don't make sense in bindings.
464
+ pub type SimpleArcPeerManager < SD , M , T , F , C , L > = PeerManager < SD , Arc < SimpleArcChannelManager < M , T , F , L > > , Arc < P2PGossipSync < Arc < NetworkGraph < Arc < L > > > , Arc < C > , Arc < L > > > , Arc < SimpleArcOnionMessenger < L > > , Arc < L > , IgnoringMessageHandler > ;
464
465
465
466
/// SimpleRefPeerManager is a type alias for a PeerManager reference, and is the reference
466
467
/// counterpart to the SimpleArcPeerManager type alias. Use this type by default when you don't
@@ -469,8 +470,8 @@ pub type SimpleArcPeerManager<SD, M, T, F, C, L> = PeerManager<SD, Arc<SimpleArc
469
470
/// But if this is not necessary, using a reference is more efficient. Defining these type aliases
470
471
/// helps with issues such as long function definitions.
471
472
///
472
- /// (C-not exported) as Arcs don't make sense in bindings
473
- pub type SimpleRefPeerManager < ' a , ' b , ' c , ' d , ' e , ' f , ' g , ' h , SD , M , T , F , C , L > = PeerManager < SD , SimpleRefChannelManager < ' a , ' b , ' c , ' d , ' e , M , T , F , L > , & ' e P2PGossipSync < & ' g NetworkGraph < & ' f L > , & ' h C , & ' f L > , IgnoringMessageHandler , & ' f L , IgnoringMessageHandler > ;
473
+ /// (C-not exported) as general type aliases don't make sense in bindings.
474
+ pub type SimpleRefPeerManager < ' a , ' b , ' c , ' d , ' e , ' f , ' g , ' h , ' i , ' j , ' k , SD , M , T , F , C , L > = PeerManager < SD , SimpleRefChannelManager < ' a , ' b , ' c , ' d , ' e , M , T , F , L > , & ' e P2PGossipSync < & ' g NetworkGraph < & ' f L > , & ' h C , & ' f L > , & ' i SimpleRefOnionMessenger < ' j , ' k , L > , & ' f L , IgnoringMessageHandler > ;
474
475
475
476
/// A PeerManager manages a set of peers, described by their [`SocketDescriptor`] and marshalls
476
477
/// socket events into messages which it passes on to its [`MessageHandler`].
0 commit comments