File tree Expand file tree Collapse file tree 6 files changed +6
-27
lines changed Expand file tree Collapse file tree 6 files changed +6
-27
lines changed Original file line number Diff line number Diff line change @@ -117,6 +117,7 @@ exceptions = [
117117    #  Each entry is the crate and version constraint, and its specific allow
118118    #  list
119119    # { allow = ["Zlib"], crate = "adler32" },
120+     { allow  = [" CDLA-Permissive-2.0" crate  = " webpki-root-certs" 
120121]
121122
122123#  Some crates don't have (easily) machine readable licensing information,
Load Diff This file was deleted. 
Original file line number Diff line number Diff line change 11use  anyhow:: { Result ,  anyhow} ; 
2- use  silent:: prelude:: * ; 
32use  silent:: QuicEndpointListener ; 
3+ use  silent:: prelude:: * ; 
44use  tracing_subscriber:: EnvFilter ; 
55
66#[ tokio:: main]  
Original file line number Diff line number Diff line change 1- #![ cfg( feature = "quic" ) ]  
2- 
31pub ( crate )  mod  connection; 
42mod  core; 
53mod  echo; 
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ pub(crate) async fn handle_quic_connection(
2828    info ! ( %remote,  "客户端连接建立" ) ; 
2929
3030    // 默认的 WebTransport Handler 
31-     let  handler = Arc :: new ( super :: echo:: EchoHandler :: default ( ) ) ; 
31+     let  handler = Arc :: new ( super :: echo:: EchoHandler ) ; 
3232
3333    let  mut  builder = h3:: server:: builder ( ) ; 
3434    builder
Original file line number Diff line number Diff line change @@ -54,16 +54,16 @@ impl ConnectionService for Route {
5454                Ok ( quic)  => { 
5555                    // QUIC 连接处理 
5656                    let  routes = Arc :: new ( self . clone ( ) ) ; 
57-                     return   Box :: pin ( async  move  { 
57+                     Box :: pin ( async  move  { 
5858                        let  incoming = quic. into_incoming ( ) ; 
5959                        crate :: quic:: service:: handle_quic_connection ( incoming,  routes) 
6060                            . await 
6161                            . map_err ( BoxError :: from) 
62-                     } ) ; 
62+                     } ) 
6363                } 
6464                Err ( stream)  => { 
6565                    // 不是 QUIC 连接,继续处理为 HTTP/1.1 或 HTTP/2 
66-                     return   Self :: handle_http_connection ( self . clone ( ) ,  stream,  peer) ; 
66+                     Self :: handle_http_connection ( self . clone ( ) ,  stream,  peer) 
6767                } 
6868            } 
6969        } 
 
 
   
 
     
   
   
          
    
    
     
    
      
     
     
    You can’t perform that action at this time.
  
 
    
  
    
      
        
     
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments