Added SaveCharacter and UpdateSession function stubs
Updated proto message type names to better match usage Fixed compile errors due to type name changes
This commit is contained in:
@@ -1,6 +1,6 @@
|
||||
use crate::grpc::database_service::MyDatabaseService;
|
||||
use crate::grpc::session_service_server::SessionService;
|
||||
use crate::grpc::{GetSessionRequest, GetSessionResponse, RefreshSessionRequest, RefreshSessionResponse};
|
||||
use crate::grpc::{GetSessionRequest, GetSessionResponse, RefreshSessionRequest, RefreshSessionResponse, UpdateSessionRequest, UpdateSessionResponse};
|
||||
use tonic::{Request, Response, Status};
|
||||
use tracing::debug;
|
||||
|
||||
@@ -43,4 +43,8 @@ impl SessionService for MyDatabaseService {
|
||||
debug!("session: {:?}", session);
|
||||
Ok(Response::new(RefreshSessionResponse { valid }))
|
||||
}
|
||||
|
||||
async fn update_session(&self, request: Request<UpdateSessionRequest>) -> Result<Response<UpdateSessionResponse>, Status> {
|
||||
todo!()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user