@loop(seconds=settings.MATCHMAKING_CREATE_MATCH_FREQUENCY)
async def attempt_create_match(self):
    print(f'[Matchmaking] attempting to create a match with {len(self.queue)} members')
    if (len(self.queue) <= 1):
        print('tried creating match with less than 2 members')
        return
    matched_players = random.sample(self.queue, 2)
    u1 = matched_players[0]
    u2 = matched_players[1]
    (await self.create_match(u1, u2))
@loop(seconds=settings.MATCHMAKING_CREATE_MATCH_FREQUENCY)
async def attempt_create_match(self):
    print(f'[Matchmaking] attempting to create a match with {len(self.queue)} members')
    if (len(self.queue) <= 1):
        print('tried creating match with less than 2 members')
        return
    matched_players = random.sample(self.queue, 2)
    u1 = matched_players[0]
    u2 = matched_players[1]
    (await self.create_match(u1, u2))