()
| 76 | /// See the module docs for how to run. |
| 77 | #[tokio::main] |
| 78 | async fn main() -> Result<(), Box<dyn std::error::Error>> { |
| 79 | let opts: Options = Options::parse(); |
| 80 | |
| 81 | tracing_subscriber::fmt() |
| 82 | .with_max_level(opts.log_level()) |
| 83 | .init(); |
| 84 | |
| 85 | let provider = Provider::<Http>::try_from(opts.http_endpoint())?; |
| 86 | |
| 87 | run_http(provider, &opts).await?; |
| 88 | |
| 89 | Ok(()) |
| 90 | } |
| 91 | |
| 92 | async fn run<C>(provider: &Provider<C>, opts: &Options) -> anyhow::Result<()> |
| 93 | where |
nothing calls this directly
no test coverage detected