Skip to content

Commit ae6e12d

Browse files
committed
some clean up
1 parent 08465d6 commit ae6e12d

File tree

2 files changed

+0
-28
lines changed

2 files changed

+0
-28
lines changed

backend/src/connector/mod.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,6 @@ impl HttpsBuilder {
8787
}
8888
}
8989

90-
// FIXME: This should be generic type on main (and cluster) fields
91-
// Reasons why it's not:
92-
// AuthUser can't be implemented for generic types, since it requires 'static lifetime on trait implemetations.
93-
// Implementing it on some concrete type still requires specifying a generic type
94-
// on `Client`'s `index_marker` field.
95-
// `dyn` type can provide the required polymorhism, but it's suboptimal (probably).
9690
#[derive(Clone)]
9791
pub struct BobClient<Client: ApiNoContext<ClientContext> + Send + Sync> {
9892
/// Unique Identifier

backend/src/services/auth.rs

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -159,28 +159,6 @@ impl<User, UserId, UserStore, Client> AuthState<User, UserId, UserStore, Client>
159159
}
160160
}
161161

162-
// #[async_trait]
163-
// pub trait Auth<Id, User> {
164-
// const AUTH_DATA_KEY: &'static str = "_auth_data";
165-
//
166-
// /// Login user to a Session
167-
// ///
168-
// /// # Errors
169-
// ///
170-
// /// This function will return an error if the user couldn't be loaded from provided store or
171-
// /// the user couldn't be serialized
172-
// async fn login(&mut self, user_id: &Id) -> Result<(), AuthError>;
173-
//
174-
// /// Logout user from a Session
175-
// ///
176-
// /// # Errors
177-
// ///
178-
// /// This function will return an error if the user couldn't be loaded from provided store or
179-
// /// the user couldn't be serialized
180-
// fn logout(&mut self) -> Result<(), AuthError>;
181-
// fn user(&self) -> Option<User>;
182-
// }
183-
184162
#[derive(Debug, Clone)]
185163
pub struct AuthStore<User, Id, Client, SessionStore>
186164
where

0 commit comments

Comments
 (0)