From 89f30910991d3159fa50b4dd94ca9e50a81202cd Mon Sep 17 00:00:00 2001 From: jake Date: Sat, 3 Oct 2020 17:23:39 -0600 Subject: [PATCH] make save_user_settings async --- src/entity/gateway/entitygateway.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/entity/gateway/entitygateway.rs b/src/entity/gateway/entitygateway.rs index 9cf4d4d..71c23fd 100644 --- a/src/entity/gateway/entitygateway.rs +++ b/src/entity/gateway/entitygateway.rs @@ -2,6 +2,7 @@ use crate::entity::account::*; use crate::entity::character::*; use crate::entity::item::*; +// TODO: all these Options should be Results #[async_trait::async_trait] pub trait EntityGateway: Send + Sync + Clone { async fn create_user(&mut self, _user: NewUserAccountEntity) -> Option { @@ -28,7 +29,7 @@ pub trait EntityGateway: Send + Sync + Clone { unimplemented!(); } - fn save_user_settings(&mut self, _settings: &UserSettingsEntity) { + async fn save_user_settings(&mut self, _settings: &UserSettingsEntity) { unimplemented!(); } @@ -36,6 +37,7 @@ pub trait EntityGateway: Send + Sync + Clone { unimplemented!(); } + // TODO: just make this a vec sorted by slot order? async fn get_characters_by_user(&self, _user: &UserAccountEntity) -> [Option; 4] { unimplemented!(); }