robot-bengali-2 commited on
Commit
ea3298f
1 Parent(s): 92e2a62

Increase the number of concurrent API queries

Browse files
Files changed (1) hide show
  1. dashboard_utils/bubbles.py +1 -1
dashboard_utils/bubbles.py CHANGED
@@ -36,7 +36,7 @@ def get_new_bubble_data():
36
  @simple_time_tracker(_log)
37
  def get_profiles(usernames):
38
  profiles = []
39
- with FuturesSession() as session:
40
  futures = []
41
  for username in usernames:
42
  future = session.get(URL_QUICKSEARCH + parse.urlencode({"type": "user", "q": username}))
 
36
  @simple_time_tracker(_log)
37
  def get_profiles(usernames):
38
  profiles = []
39
+ with FuturesSession(max_workers=32) as session:
40
  futures = []
41
  for username in usernames:
42
  future = session.get(URL_QUICKSEARCH + parse.urlencode({"type": "user", "q": username}))