pub fn new_gateway_client(
    gateway: gateway::Node,
    identity_keypair: identity::KeyPair,
    ack_sender: AckSender,
    mixnet_messages_sender: MixnetSender,
) -> GatewayClient {
    let timeout = time::Duration::from_millis(500);
    let identity_arc = Arc::new(identity_keypair);

    gateway_client::GatewayClient::new(
        gateway.client_listener,
        identity_arc,
        gateway.identity_key,
        None,
        mixnet_messages_sender,
        ack_sender,
        timeout,
    )
}
/// Construct a new gateway client.
Construct a new gateway client.
Construct a new gateway client .
pub fn new_gateway_client(
    gateway: gateway::Node,
    identity_keypair: identity::KeyPair,
    ack_sender: AckSender,
    mixnet_messages_sender: MixnetSender,
) -> GatewayClient {
    let timeout = time::Duration::from_millis(500);
    let identity_arc = Arc::new(identity_keypair);
    gateway_client::GatewayClient::new(
        gateway.client_listener,
        identity_arc,
        gateway.identity_key,
        None,
        mixnet_messages_sender,
        ack_sender,
        timeout,
    )
}
pub fn new_gateway_client ( gateway : gateway :: Node , identity_keypair : identity :: KeyPair , ack_sender : AckSender , mixnet_messages_sender : MixnetSender , ) -> GatewayClient { let timeout = time :: Duration :: from_millis ( 500 ) ; let identity_arc = Arc :: new ( identity_keypair ) ; gateway_client :: GatewayClient :: new ( gateway . client_listener , identity_arc , gateway . identity_key , None , mixnet_messages_sender , ack_sender , timeout , ) }
Construct a new gateway client.
Construct a new gateway client .
gateway
gateway::Node
identity_keypair
identity::KeyPair
ack_sender
AckSender
mixnet_messages_sender
MixnetSender