mirror of
				https://codeberg.org/yeentown/barkey.git
				synced 2025-11-04 07:24:13 +00:00 
			
		
		
		
	fix rate limit check never ends (#13994)
This commit is contained in:
		
							parent
							
								
									c51347d78b
								
							
						
					
					
						commit
						220e112c83
					
				
					 1 changed files with 1 additions and 1 deletions
				
			
		| 
						 | 
					@ -57,7 +57,7 @@ export class RateLimiterService {
 | 
				
			||||||
						return reject({ code: 'BRIEF_REQUEST_INTERVAL', info });
 | 
											return reject({ code: 'BRIEF_REQUEST_INTERVAL', info });
 | 
				
			||||||
					} else {
 | 
										} else {
 | 
				
			||||||
						if (hasLongTermLimit) {
 | 
											if (hasLongTermLimit) {
 | 
				
			||||||
							return max;
 | 
												return max.then(ok, reject);
 | 
				
			||||||
						} else {
 | 
											} else {
 | 
				
			||||||
							return ok();
 | 
												return ok();
 | 
				
			||||||
						}
 | 
											}
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		
		Reference in a new issue