tourniquet-tonic

Crates.iotourniquet-tonic
lib.rstourniquet-tonic
version0.5.0
sourcesrc
created_at2022-01-05 10:58:36.205146
updated_at2024-02-16 15:24:21.851412
descriptionAsync native round-robin manager for remote services. Tonic integration.
homepage
repositoryhttps://github.com/Tuetuopay/tourniquet
max_upload_size
id508315
size19,298
(Tuetuopay)

documentation

README

tourniquet-tonic

Tourniquet integration with the celery library.

Example

#
#
let rr = RoundRobin::new(
    vec!["https://api01", "https://api02"],
    TonicConnector::default(),
);

rr.run(|channel| async move {
    grpc::greeting_client::GreetingClient::new(channel.as_ref().clone())
        .hello(grpc::Message::default())
        .await?;
    Ok(())
}).await?;

License: MIT

Commit count: 41

cargo fmt