Skip to content

Commit f8ad4b2

Browse files
committed
Fix method name
1 parent 7d61bde commit f8ad4b2

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

clients/miner.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ def on_close(ws, close_status_code, close_msg):
169169
sys.stderr.write("GAME OVER!\n")
170170

171171

172-
def news_url(host, game, player_name="MIN"):
172+
def ship_url(host, game, player_name="MIN"):
173173
return "ws://{}/{}/ship/{}".format(host, game, urllib.parse.quote(player_name))
174174

175175
# Runner
@@ -199,7 +199,8 @@ def run(ws):
199199
player_name = args.name or name()
200200
miner = ConstantBearingMiner(player_name)
201201

202-
ws_url = news_url(args.host, args.game, player_name)
202+
ws_url = ship_url(args.host, args.game, player_name)
203+
print(ws_url)
203204
ws = websocket.WebSocketApp(ws_url,
204205
header={"Accept": "application/json"},
205206
on_message=partial(on_message, miner),

0 commit comments

Comments
 (0)