File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 9999 . and ( filters:: with_store ( email_store. clone ( ) ) )
100100 . and ( my_filters:: with_http_client ( http_client. clone ( ) ) )
101101 . and ( filters:: with_api_settings ( api. clone ( ) ) )
102- . and_then ( trial_handler)
103- . with ( & cors) ;
102+ . and_then ( trial_handler) ;
104103
105104 let tg_trial_route = warp:: post ( )
106105 . and ( warp:: path ( "tg-trial" ) )
@@ -120,14 +119,14 @@ where
120119 . and ( warp:: body:: json :: < request:: ActivateKey > ( ) )
121120 . and ( my_filters:: with_http_client ( http_client) )
122121 . and ( filters:: with_api_settings ( api) )
123- . and_then ( activate_key_handler)
124- . with ( & cors) ;
122+ . and_then ( activate_key_handler) ;
125123
126124 let routes = health_check
127125 . or ( auth_route)
128126 . or ( trial_route)
129127 . or ( tg_trial_route)
130- . or ( activate_route) ;
128+ . or ( activate_route)
129+ . with ( cors) ;
131130
132131 warp:: serve ( routes)
133132 . run ( SocketAddr :: new ( IpAddr :: V4 ( self . listen ) , self . port ) )
Original file line number Diff line number Diff line change @@ -170,6 +170,8 @@ pub async fn create_connection(
170170 api_address : & str ,
171171 api_token : & str ,
172172) -> anyhow:: Result < uuid:: Uuid > {
173+ tracing:: debug!( "POST /connection {}" , env) ;
174+
173175 let res = auth_headers (
174176 http. post ( format ! ( "{}/connection" , api_address) )
175177 . json ( & serde_json:: json!( {
You can’t perform that action at this time.
0 commit comments