feat: make the cache warming thread a daemon

This commit is contained in:
Paul Gauthier (aider) 2024-08-26 16:23:56 -07:00
parent 75e8a38c3a
commit ee11af11db

View file

@ -1032,6 +1032,7 @@ class Coder:
self.io.tool_output(f"Warmed {format_tokens(cache_hit_tokens)} cached tokens.")
self.cache_warming_thread = threading.Timer(0, warm_cache_worker)
self.cache_warming_thread.daemon = True
self.cache_warming_thread.start()
return chunks