refactor(tests): reformat code and update dependency management
- Reorganized import statements in adapter tests for better readability - Replaced or_insert_with(Vec::new) with or_default() in test closures - Updated Cargo.lock with new dependency versions and checksums - Added TLS features to tonic dependency configuration - Included sqlx, chrono, and uuid dependencies with specific features - Added jsonwebtoken and arc-swap as project dependencies - Reformatted assertion statements to comply with line length limits - Adjusted base64 import order in engine codec module - Updated protobuf include statement formatting
This commit is contained in:
@@ -33,7 +33,12 @@ fn now_millis() -> u64 {
|
||||
|
||||
#[async_trait]
|
||||
impl SessionStoreTrait for InMemorySessionStore {
|
||||
async fn create(&self, sid: &str, transport: &str, server_id: &str) -> Result<(), SessionError> {
|
||||
async fn create(
|
||||
&self,
|
||||
sid: &str,
|
||||
transport: &str,
|
||||
server_id: &str,
|
||||
) -> Result<(), SessionError> {
|
||||
let info = SessionInfo {
|
||||
sid: sid.to_string(),
|
||||
transport: transport.to_string(),
|
||||
@@ -85,4 +90,4 @@ impl SessionStoreTrait for InMemorySessionStore {
|
||||
async fn exists(&self, sid: &str) -> Result<bool, SessionError> {
|
||||
Ok(self.sessions.contains_key(sid))
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user