mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-23 03:35:40 +00:00
Enable the Enable max-len and max-lines eslint rules (#1842)
## Description: Enable the Enable `max-len` and `max-lines` eslint rules. Fixes #1785 ## Please complete the following: - [x] I have added screenshots for all UI updates - [x] I process any text displayed to the user through translateText() and I've added it to the en.json file - [x] I have added relevant tests to the test directory - [x] I confirm I have thoroughly tested these changes and take full responsibility for any bugs introduced
This commit is contained in:
+13
-1
@@ -133,7 +133,19 @@ export async function startWorker() {
|
||||
const game = gm.createGame(id, gc, creatorClientID);
|
||||
|
||||
log.info(
|
||||
`Worker ${workerId}: IP ${ipAnonymize(clientIP)} creating ${game.isPublic() ? "Public" : "Private"}${gc?.gameMode ? ` ${gc.gameMode}` : ""} game with id ${id}${creatorClientID ? `, creator: ${creatorClientID}` : ""}`,
|
||||
`Worker ${
|
||||
workerId
|
||||
}: IP ${
|
||||
ipAnonymize(clientIP)
|
||||
} creating ${
|
||||
game.isPublic() ? "Public" : "Private"
|
||||
}${
|
||||
gc?.gameMode ? ` ${gc.gameMode}` : ""
|
||||
} game with id ${
|
||||
id
|
||||
}${
|
||||
creatorClientID ? `, creator: ${creatorClientID}` : ""
|
||||
}`,
|
||||
);
|
||||
res.json(game.gameInfo());
|
||||
}),
|
||||
|
||||
@@ -121,7 +121,9 @@ async function handleJoinMessage(
|
||||
const expectedWorkerId = config.workerIndex(clientMsg.gameID);
|
||||
if (expectedWorkerId !== workerId) {
|
||||
log.warn(
|
||||
`Worker mismatch: Game ${clientMsg.gameID} should be on worker ${expectedWorkerId}, but this is worker ${workerId}`,
|
||||
`Worker mismatch: Game ${clientMsg.gameID
|
||||
} should be on worker ${expectedWorkerId
|
||||
}, but this is worker ${workerId}`,
|
||||
);
|
||||
return;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user