Repository navigation
feat: MAP_CLIENTS_ADDR で /live/clients だけを受ける追加の内部待受を足す - #17
Merged
Merged
Conversation
MAP_CLIENTS_ADDR を決めたときだけ、POST /live/clients と GET /healthz だけを受ける追加の内部専用の待受を起動する。検証は既存の内部の待受と同じ実装を共用する。/healthz には接続中の人数だけを出す。未設定なら従来と同じ動作。
Merged
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
内容
MAP_CLIENTS_ADDR(例0.0.0.0:3000) が決められたときだけ、追加の内部専用の待受を起動するPOST /live/clientsとGET /healthzのみ。それ以外は 404/live/clientsの検証 (X-Toro-TokenとMAP_CLIENTS_TOKEN、204/403、猶予) は既存の内部待受と同じclientsを共用/healthzは{"ok":true,"players":<人数>}(IP は出さない)。既存の待受は変更なしMAP_DB_HOST/MAP_BLUEMAP_DATABASEが無いのに決めた場合は起動時にエラー終了)試験 (ローカル)
cargo fmt --check、cargo clippy --all-targets --locked -- -D warnings、cargo test --locked合格 (追加 4 件: 403、204、空配列、人数のみ、404)