fix: Silence tower_sessions warning

This commit is contained in:
Ginger committed 2026-10-25 13:47:36 -04:00
1 parent b848aed1bb
commit 81c62c4a35
1 file changed
+13
+13
View File
@@ -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