()
| 51 | } |
| 52 | |
| 53 | async fn create_coordinator() -> anyhow::Result<CoordinatorClient> { |
| 54 | let url = std::env::var("CROWS_COORDINATOR_URL").unwrap_or("127.0.0.1:8282".to_string()); |
| 55 | let service = ClientService {}; |
| 56 | Ok(connect_to_coordinator(url, service).await?) |
| 57 | } |
| 58 | |
| 59 | #[tokio::main] |
| 60 | pub async fn main() -> anyhow::Result<()> { |