shit
This commit is contained in:
parent
7583f7e557
commit
8d3c25b59d
34 changed files with 373 additions and 196 deletions
|
|
@ -5,7 +5,7 @@ use eva::{
|
|||
use eyre::Context;
|
||||
use viendesu_core::{
|
||||
errors::AuxResult,
|
||||
service::{Service, SessionMaker, SessionOf},
|
||||
service::{IsService, Session, SessionMaker, SessionOf},
|
||||
};
|
||||
|
||||
use tokio::net;
|
||||
|
|
@ -22,7 +22,7 @@ mod response;
|
|||
mod routes;
|
||||
|
||||
pub trait Types: Send + Sync + 'static {
|
||||
type Service: Service + Clone;
|
||||
type Service: IsService + Clone;
|
||||
}
|
||||
|
||||
pub async fn serve(
|
||||
|
|
@ -73,7 +73,7 @@ struct State<T: Types> {
|
|||
}
|
||||
|
||||
impl<T: Types> State<T> {
|
||||
async fn make_session(&self) -> AuxResult<SessionOf<T::Service>> {
|
||||
self.service.make_session().await
|
||||
async fn make_session(&self) -> AuxResult<Session<SessionOf<T::Service>>> {
|
||||
Ok(self.service.make_session().await?)
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue