| Crates.io | tourniquet-tonic |
| lib.rs | tourniquet-tonic |
| version | 0.7.0 |
| created_at | 2022-01-05 10:58:36.205146+00 |
| updated_at | 2025-11-19 20:16:19.492131+00 |
| description | Async native round-robin manager for remote services. Tonic integration. |
| homepage | |
| repository | https://github.com/Tuetuopay/tourniquet |
| max_upload_size | |
| id | 508315 |
| size | 45,795 |
Tourniquet integration with the celery library.
#
#
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