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 @@ -41,7 +41,7 @@ use crate::server::NamedService;
41
41
use bytes:: Bytes ;
42
42
use http:: { Request , Response } ;
43
43
use http_body:: Body as _;
44
- use hyper:: { server :: accept , Body } ;
44
+ use hyper:: Body ;
45
45
use pin_project:: pin_project;
46
46
use std:: {
47
47
convert:: Infallible ,
@@ -55,6 +55,7 @@ use std::{
55
55
time:: Duration ,
56
56
} ;
57
57
use tokio:: io:: { AsyncRead , AsyncWrite } ;
58
+ use tokio:: net:: TcpStream ;
58
59
use tokio_stream:: Stream ;
59
60
use tower:: {
60
61
layer:: util:: { Identity , Stack } ,
@@ -525,7 +526,7 @@ impl<L> Server<L> {
525
526
let svc = self . service_builder . service ( svc) ;
526
527
527
528
let tcp = incoming:: tcp_incoming ( incoming, self ) ;
528
- let incoming = accept:: from_stream :: < _ , _ , crate :: Error > ( tcp) ;
529
+ let incoming = TcpStream :: accept:: from_stream :: < _ , _ , crate :: Error > ( tcp) ;
529
530
530
531
let svc = MakeSvc {
531
532
inner : svc,
You can’t perform that action at this time.
0 commit comments