chore(backend): format
This commit is contained in:
		
							parent
							
								
									7d6d4631b8
								
							
						
					
					
						commit
						cd24196cd1
					
				
					 1 changed files with 5 additions and 2 deletions
				
			
		|  | @ -23,8 +23,11 @@ public class EmailRateLimiter | |||
| { | ||||
|     private readonly ConcurrentDictionary<string, RateLimiter> _limiters = new(); | ||||
| 
 | ||||
|     private readonly FixedWindowRateLimiterOptions _limiterOptions = | ||||
|         new() { Window = TimeSpan.FromHours(2), PermitLimit = 3 }; | ||||
|     private readonly FixedWindowRateLimiterOptions _limiterOptions = new() | ||||
|     { | ||||
|         Window = TimeSpan.FromHours(2), | ||||
|         PermitLimit = 3, | ||||
|     }; | ||||
| 
 | ||||
|     private RateLimiter GetLimiter(string bucket) => | ||||
|         _limiters.GetOrAdd(bucket, _ => new FixedWindowRateLimiter(_limiterOptions)); | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue