File tree Expand file tree Collapse file tree
data_proxy/src/s3_frontend Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -31,7 +31,6 @@ use std::sync::Arc;
3131use tokio:: net:: TcpListener ;
3232use tracing:: error;
3333use tracing:: info;
34- use tracing:: trace;
3534
3635pub struct S3Server {
3736 s3service : S3Service ,
@@ -123,7 +122,6 @@ impl Service<hyper::Request<hyper::body::Incoming>> for WrappingService {
123122
124123 #[ tracing:: instrument( level = "trace" , skip( self , req) ) ]
125124 fn call ( & self , req : hyper:: Request < hyper:: body:: Incoming > ) -> Self :: Future {
126- trace ! ( "{:?}" , req. headers( ) ) ;
127125 // Catch OPTIONS requests
128126 if req. method ( ) == Method :: OPTIONS {
129127 let clone = self . clone ( ) ;
@@ -187,8 +185,6 @@ impl Service<hyper::Request<hyper::body::Incoming>> for WrappingService {
187185 * status = StatusCode :: from_u16 ( 206 ) . unwrap ( ) ;
188186 }
189187
190- trace ! ( "{:?}" , r. headers( ) ) ;
191-
192188 r. map ( Body :: from)
193189 } )
194190 } ) ;
@@ -244,10 +240,6 @@ impl WrappingService {
244240 . headers ( )
245241 . get ( HOST )
246242 . ok_or_else ( || s3_error ! ( InvalidURI , "No authority provided in URI" ) ) ?;
247-
248- trace ! ( "{:?}" , authority) ;
249- // .authority()
250- // .ok_or_else(|| s3_error!(InvalidURI, "No authority provided in URI"))?;
251243 let bucket = authority
252244 . to_str ( )
253245 . map_err ( |e| {
Original file line number Diff line number Diff line change @@ -648,7 +648,7 @@ impl Object {
648648 pub async fn update_title ( id : & DieselUlid , title : String , client : & Client ) -> Result < ( ) > {
649649 let query = "UPDATE objects
650650 SET title = $2
651- WHERE id = $1 ;" ;
651+ WHERE id = $1;" ;
652652
653653 let prepared = client. prepare ( query) . await ?;
654654
@@ -659,7 +659,7 @@ impl Object {
659659 pub async fn update_authors ( & self , client : & Client ) -> Result < ( ) > {
660660 let query = "UPDATE objects
661661 SET authors = $2
662- WHERE id = $1 ;" ;
662+ WHERE id = $1;" ;
663663
664664 let prepared = client. prepare ( query) . await ?;
665665
@@ -669,7 +669,7 @@ impl Object {
669669 pub async fn update ( & self , client : & Client ) -> Result < ( ) > {
670670 let query = "UPDATE objects
671671 SET description = $2, key_values = $3, data_class = $4
672- WHERE id = $1 ;" ;
672+ WHERE id = $1;" ;
673673
674674 let prepared = client. prepare ( query) . await ?;
675675
You can’t perform that action at this time.
0 commit comments