refactor(rt): remove re-export of tokio::main (#1879)
Closes #1878. BREAKING CHANGE: Replace all usage of `rt::main` with `tokio::main`.
This commit is contained in:
committed by
Sean McArthur
parent
1d00bb29d4
commit
0d3cbe28fc
@@ -109,7 +109,7 @@ async fn client_upgrade_request(addr: SocketAddr) -> Result<()> {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
#[hyper::rt::main]
|
||||
#[tokio::main]
|
||||
async fn main() {
|
||||
// For this example, we just make a server and our own client to talk to
|
||||
// it, so the exact port isn't important. Instead, let the OS give us an
|
||||
|
||||
Reference in New Issue
Block a user