mirror of
https://forgejo.ellis.link/continuwuation/continuwuity.git
synced 2026-11-14 20:56:49 +00:00
fix: Silence tower_sessions warning
This commit is contained in:
1 file changed
+13
@@ -32,6 +32,19 @@ impl SessionStore for RocksDbSessionStore {
|
||||
Ok(())
|
||||
}
|
||||
|
||||
async fn create(&self, session: &mut Record) -> Result<(), Error> {
|
||||
while self
|
||||
.websessionid_session
|
||||
.exists(&session.id.0.to_be_bytes())
|
||||
.await
|
||||
.is_ok()
|
||||
{
|
||||
session.id = Id::default();
|
||||
}
|
||||
|
||||
self.save(session).await
|
||||
}
|
||||
|
||||
async fn load(&self, session_id: &Id) -> Result<Option<Record>, Error> {
|
||||
let Some(session) = self
|
||||
.websessionid_session
|
||||
|
||||
Reference in new issue
Block a user