aboutsummaryrefslogtreecommitdiff
path: root/planetwars-client/src/main.rs
diff options
context:
space:
mode:
authorIlion Beyst <ilion.beyst@gmail.com>2022-06-09 20:57:45 +0200
committerIlion Beyst <ilion.beyst@gmail.com>2022-06-09 20:57:45 +0200
commitd1977b95c82f608bc558432cdfba8026aaf0648d (patch)
tree2e23b6553b444dc2e93130c035cf738c0e5a07a8 /planetwars-client/src/main.rs
parente3cf0df4509fe5cb0ad114040f52f61436a6663f (diff)
downloadplanetwars.dev-d1977b95c82f608bc558432cdfba8026aaf0648d.tar.xz
planetwars.dev-d1977b95c82f608bc558432cdfba8026aaf0648d.zip
consistently use player_key and player_id
Diffstat (limited to 'planetwars-client/src/main.rs')
-rw-r--r--planetwars-client/src/main.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/planetwars-client/src/main.rs b/planetwars-client/src/main.rs
index 9df100d..3ece5b3 100644
--- a/planetwars-client/src/main.rs
+++ b/planetwars-client/src/main.rs
@@ -44,8 +44,8 @@ async fn create_match(channel: Channel) -> Result<pb::CreatedMatch, Status> {
async fn run_player(bot_config: BotConfig, player_key: String, channel: Channel) {
let mut client = BotApiServiceClient::with_interceptor(channel, |mut req: Request<()>| {
- let player_id: MetadataValue<_> = player_key.parse().unwrap();
- req.metadata_mut().insert("player_id", player_id);
+ let player_key: MetadataValue<_> = player_key.parse().unwrap();
+ req.metadata_mut().insert("player_key", player_key);
Ok(req)
});