Add missing limitedAt assignment
This commit is contained in:
		
							parent
							
								
									3d8858f0d8
								
							
						
					
					
						commit
						e8b5cbef7b
					
				
					 1 changed files with 1 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -137,6 +137,7 @@ proc fetch*(url: Uri; api: Api): Future[JsonNode] {.async.} =
 | 
			
		|||
        raise rateLimitError()
 | 
			
		||||
      elif errors in {rateLimited}:
 | 
			
		||||
        account.apis[api].limited = true
 | 
			
		||||
        account.apis[api].limitedAt = epochTime().int
 | 
			
		||||
        echo "rate limited, api: ", $api, ", reqs left: ", account.apis[api].remaining, ", id: ", account.id
 | 
			
		||||
 | 
			
		||||
proc fetchRaw*(url: Uri; api: Api): Future[string] {.async.} =
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue