n0-computer / quic-rpc

A streaming rpc system based on quic
Other
93 stars 12 forks source link

Cant find flume::Connection::New #53

Open makorne opened 1 year ago

makorne commented 1 year ago

Hi! Thank you for your great crate.

I tried to use the example with flume feature(for wasm) but can't find how to init client like in this code:

let client = quic_rpc::transport::quinn::QuinnConnection::new(
        endpoint,
        server_addr,
        "localhost".to_string(),
    );

Cheers!

rklaehn commented 1 year ago

So you want to modify the example to use flume? Flume is purely for in process communication. Not quite sure what you are trying to do.

(a part of the motivation of this crate was to make a RPC framework for people that don't like RPC. It should have extremely low overhead when used in-process. That is why there is the flume channel)

makorne commented 1 year ago

Ups... Recently I used some lib for process communication with flume... And it used reqwest for inter-servers communications. I think your crate has such option but over quic too.. Thank you!