File tree 1 file changed +3
-2
lines changed
tonic/src/transport/server
1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -43,7 +43,7 @@ use crate::body::BoxBody;
43
43
use bytes:: Bytes ;
44
44
use http:: { Request , Response } ;
45
45
use http_body:: Body as _;
46
- use hyper:: { server :: accept , Body } ;
46
+ use hyper:: Body ;
47
47
use pin_project:: pin_project;
48
48
use std:: {
49
49
convert:: Infallible ,
@@ -57,6 +57,7 @@ use std::{
57
57
time:: Duration ,
58
58
} ;
59
59
use tokio:: io:: { AsyncRead , AsyncWrite } ;
60
+ use tokio:: net:: TcpStream ;
60
61
use tokio_stream:: Stream ;
61
62
use tower:: {
62
63
layer:: util:: { Identity , Stack } ,
@@ -527,7 +528,7 @@ impl<L> Server<L> {
527
528
let svc = self . service_builder . service ( svc) ;
528
529
529
530
let tcp = incoming:: tcp_incoming ( incoming, self ) ;
530
- let incoming = accept:: from_stream :: < _ , _ , crate :: Error > ( tcp) ;
531
+ let incoming = TcpStream :: accept:: from_stream :: < _ , _ , crate :: Error > ( tcp) ;
531
532
532
533
let svc = MakeSvc {
533
534
inner : svc,
You can’t perform that action at this time.
0 commit comments