Skip to content

Commit

Permalink
reminder fix & improve efficiency
Browse files Browse the repository at this point in the history
  • Loading branch information
MagicTheDev committed Apr 19, 2024
1 parent f639e83 commit 4d5a3f8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gamewide/war/track.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@

config = GlobalWarTrackingConfig()
db_client = MongoDatabase(stats_db_connection=config.stats_mongodb, static_db_connection=config.static_mongodb)
coc_client = coc.Client(key_count=10, throttle_limit=30, cache_max_size=0, raw_attribute=True)
coc_client = coc.Client(key_count=10, throttle_limit=30, cache_max_size=0, raw_attribute=True, timeout=600)


class Members(Struct):
Expand Down Expand Up @@ -96,7 +96,7 @@ async def fetch(url, session: aiohttp.ClientSession, headers, tag, throttler: Th

x += 1
for count, tag_group in enumerate(all_tags, 1):
await asyncio.sleep(10)
await asyncio.sleep(7.5)
logger.info(f"Group {count}/{len(all_tags)}")
tasks = []
connector = aiohttp.TCPConnector(limit=500, ttl_dns_cache=600)
Expand Down

0 comments on commit 4d5a3f8

Please sign in to comment.