more clean up
This commit is contained in:
@@ -1,10 +1,10 @@
|
||||
#![feature(async_await)]
|
||||
|
||||
use http::Request;
|
||||
use std::pin::Pin;
|
||||
use std::task::{Context, Poll};
|
||||
use tokio::net::TcpStream;
|
||||
use tower_h2::Connection;
|
||||
use std::pin::Pin;
|
||||
|
||||
#[tokio::main]
|
||||
async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
||||
|
||||
@@ -2,9 +2,9 @@
|
||||
|
||||
use futures_util::future;
|
||||
use http::{Request, Response};
|
||||
use std::pin::Pin;
|
||||
use std::task::{Context, Poll};
|
||||
use tokio::net::TcpListener;
|
||||
use std::pin::Pin;
|
||||
use tower_h2::{RecvBody, Server};
|
||||
use tower_service::Service;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user