@@ -52,7 +52,7 @@ pub async fn request_challenge(
52
52
State ( mut state) : State < FaucetState > ,
53
53
Path ( player_id) : Path < String > ,
54
54
) -> Result < Json < FaucetResponseDto > , ApiError > {
55
- tracing:: info!( "Challenge request from {}" , player_id) ;
55
+ tracing:: info!( "Challenge request from {}" , player_id) ;
56
56
let client = reqwest:: Client :: new ( ) ;
57
57
let req = client
58
58
. get ( format ! (
@@ -79,7 +79,10 @@ pub async fn request_challenge(
79
79
} ;
80
80
81
81
if too_many_requests {
82
- tracing:: info!( "Challenge request from {}, was not accepted (too many reqs)" , player_id) ;
82
+ tracing:: info!(
83
+ "Challenge request from {}, was not accepted (too many reqs)" ,
84
+ player_id
85
+ ) ;
83
86
return Err ( FaucetError :: TooManyRequests . into ( ) ) ;
84
87
}
85
88
last_requests. insert ( player_id. clone ( ) , now) ;
@@ -101,7 +104,11 @@ pub async fn request_transfer(
101
104
State ( mut state) : State < FaucetState > ,
102
105
ValidatedRequest ( payload) : ValidatedRequest < FaucetRequestDto > ,
103
106
) -> Result < Json < FaucetResponseStatusDto > , ApiError > {
104
- tracing:: info!( "Faucet request from {} is asking for {}" , payload. player_id, payload. transfer. amount) ;
107
+ tracing:: info!(
108
+ "Faucet request from {} is asking for {}" ,
109
+ payload. player_id,
110
+ payload. transfer. amount
111
+ ) ;
105
112
106
113
let auth_key: String = state. auth_key . clone ( ) ;
107
114
@@ -234,7 +241,11 @@ pub async fn request_transfer(
234
241
} ;
235
242
236
243
if transfer_result {
237
- tracing:: info!( "Faucet request from {} for {} was succesful" , payload. player_id, payload. transfer. amount) ;
244
+ tracing:: info!(
245
+ "Faucet request from {} for {} was succesful" ,
246
+ payload. player_id,
247
+ payload. transfer. amount
248
+ ) ;
238
249
state. faucet_repo . add ( payload. challenge . clone ( ) ) . await ;
239
250
}
240
251
0 commit comments