Skip to content

Commit 17a8242

Browse files
committed
ref(application): use game_starting_queue instead of matchmaking_queue (#24)
1 parent 9f64fdb commit 17a8242

File tree

3 files changed

+8
-8
lines changed

3 files changed

+8
-8
lines changed

src/ttt/application/game/game/ports/game_log.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -129,14 +129,14 @@ async def already_completed_game_to_cancel(
129129
) -> None: ...
130130

131131
@abstractmethod
132-
async def users_already_in_game_to_start_game_via_matchmaking_queue(
132+
async def users_already_in_game_to_start_game_via_game_starting_queue(
133133
self,
134134
locations_of_users_in_game: Sequence[UserLocation],
135135
/,
136136
) -> None: ...
137137

138138
@abstractmethod
139-
async def bad_attempt_to_start_game_via_matchmaking_queue(
139+
async def bad_attempt_to_start_game_via_game_starting_queue(
140140
self,
141141
locations_of_users_not_in_game: Sequence[UserLocation],
142142
/,

src/ttt/application/game/game/start_game.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -100,13 +100,13 @@ async def __call__(self) -> None:
100100

101101
await (
102102
self.log
103-
.users_already_in_game_to_start_game_via_matchmaking_queue(
103+
.users_already_in_game_to_start_game_via_game_starting_queue(
104104
locations_of_users_in_game,
105105
)
106106
)
107107
await (
108108
self.log
109-
.bad_attempt_to_start_game_via_matchmaking_queue(
109+
.bad_attempt_to_start_game_via_game_starting_queue(
110110
locations_of_users_not_in_game,
111111
)
112112
)

src/ttt/infrastructure/adapters/game_log.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -209,31 +209,31 @@ async def already_completed_game_to_cancel(
209209
game_id=game.id.hex,
210210
)
211211

212-
async def users_already_in_game_to_start_game_via_matchmaking_queue(
212+
async def users_already_in_game_to_start_game_via_game_starting_queue(
213213
self,
214214
locations_of_users_in_game: Sequence[UserLocation],
215215
/,
216216
) -> None:
217217
await gather(
218218
*(
219219
self._logger.awarning(
220-
"user_already_in_game_to_start_game_via_matchmaking_queue",
220+
"user_already_in_game_to_start_game_via_game_starting_queue",
221221
chat_id=location.chat_id,
222222
user_id=location.user_id,
223223
)
224224
for location in locations_of_users_in_game
225225
),
226226
)
227227

228-
async def bad_attempt_to_start_game_via_matchmaking_queue(
228+
async def bad_attempt_to_start_game_via_game_starting_queue(
229229
self,
230230
locations_of_users_not_in_game: Sequence[UserLocation],
231231
/,
232232
) -> None:
233233
await gather(
234234
*(
235235
self._logger.awarning(
236-
"bad_attempt_to_start_game_via_matchmaking_queue",
236+
"bad_attempt_to_start_game_via_game_starting_queue",
237237
chat_id=location.chat_id,
238238
user_id=location.user_id,
239239
)

0 commit comments

Comments
 (0)