| Crates.io | tourniquet-tonic |
| lib.rs | tourniquet-tonic |
| version | 0.5.0 |
| created_at | 2022-01-05 10:58:36.205146+00 |
| updated_at | 2024-02-16 15:24:21.851412+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 | 19,298 |
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