mirror of
				https://git.asonix.dog/asonix/relay.git
				synced 2025-10-30 13:01:17 +00:00 
			
		
		
		
	Propogate Span into bcrypt verify
This commit is contained in:
		
							parent
							
								
									68a0b7c574
								
							
						
					
					
						commit
						c6adc9f77b
					
				|  | @ -61,7 +61,8 @@ impl Admin { | |||
|         hashed_api_token: Data<AdminConfig>, | ||||
|         x_api_token: XApiToken, | ||||
|     ) -> Result<(), Error> { | ||||
|         if actix_web::web::block(move || hashed_api_token.verify(x_api_token)) | ||||
|         let span = tracing::Span::current(); | ||||
|         if actix_web::web::block(move || span.in_scope(|| hashed_api_token.verify(x_api_token))) | ||||
|             .await | ||||
|             .map_err(Error::canceled)?? | ||||
|         { | ||||
|  |  | |||
		Loading…
	
		Reference in New Issue
	
	Block a user
	 asonix
						asonix