mirror of
https://github.com/Aider-AI/aider.git
synced 2025-05-30 17:24:59 +00:00
fix: Reduce number of cache warming pings
This commit is contained in:
parent
27e854708a
commit
c760b61cf5
1 changed files with 4 additions and 2 deletions
|
@ -90,7 +90,7 @@ class Coder:
|
|||
message_tokens_received = 0
|
||||
add_cache_headers = False
|
||||
cache_warming_thread = None
|
||||
num_cache_warming_pings = 5
|
||||
num_cache_warming_pings = 0
|
||||
|
||||
@classmethod
|
||||
def create(
|
||||
|
@ -260,6 +260,8 @@ class Coder:
|
|||
self.rejected_urls = set()
|
||||
self.abs_root_path_cache = {}
|
||||
|
||||
self.num_cache_warming_pings = num_cache_warming_pings
|
||||
|
||||
if not fnames:
|
||||
fnames = []
|
||||
|
||||
|
@ -992,7 +994,7 @@ class Coder:
|
|||
if not self.num_cache_warming_pings:
|
||||
return
|
||||
|
||||
delay = 5 * 60 - 10
|
||||
delay = 5 * 60 - 5
|
||||
self.next_cache_warm = time.time() + delay
|
||||
self.warming_pings_left = self.num_cache_warming_pings
|
||||
self.cache_warming_chunks = chunks
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue