From 49aee06f187b6b8a812d7878a926c6f55dc8c1fe Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Wed, 8 Feb 2023 13:14:50 +0200 Subject: [PATCH] fix(sdbclient): rename creategame to just create --- sdbclient/src/api/game/mod.rs | 2 +- sdbclient/src/plugins/menu/play/creategamecall.rs | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/sdbclient/src/api/game/mod.rs b/sdbclient/src/api/game/mod.rs index 89eb6e0..3f312dd 100644 --- a/sdbclient/src/api/game/mod.rs +++ b/sdbclient/src/api/game/mod.rs @@ -23,7 +23,7 @@ pub enum ResponseCreateGame { Valid(ResultCreateGame), } -pub fn creategame(api_address: String, token: String) -> ResponseCreateGame { +pub fn create(api_address: String, token: String) -> ResponseCreateGame { let client = reqwest::blocking::Client::new(); let resp = client diff --git a/sdbclient/src/plugins/menu/play/creategamecall.rs b/sdbclient/src/plugins/menu/play/creategamecall.rs index 4b995fa..2d822b1 100644 --- a/sdbclient/src/plugins/menu/play/creategamecall.rs +++ b/sdbclient/src/plugins/menu/play/creategamecall.rs @@ -42,7 +42,7 @@ pub(super) fn start( let thread_pool = AsyncComputeTaskPool::get(); let task = thread_pool.spawn(async move { - let create_game_response = api::game::creategame(api_address, token); + let create_game_response = api::game::create(api_address, token); CreateGameCallResponse { game: create_game_response, -- 2.44.1