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:
+6
-3
@@ -2,7 +2,7 @@ use std::sync::Arc;
|
||||
use std::time::Instant;
|
||||
|
||||
use dashmap::DashMap;
|
||||
use tokio::sync::{mpsc, Notify};
|
||||
use tokio::sync::{Notify, mpsc};
|
||||
|
||||
use crate::engine::packet::Packet;
|
||||
|
||||
@@ -124,7 +124,10 @@ impl SessionStore {
|
||||
.sessions
|
||||
.insert(sid.clone(), Arc::new(tokio::sync::RwLock::new(session)));
|
||||
if old.is_some() {
|
||||
tracing::warn!("Session ID collision for SID {}, replacing existing session", sid);
|
||||
tracing::warn!(
|
||||
"Session ID collision for SID {}, replacing existing session",
|
||||
sid
|
||||
);
|
||||
}
|
||||
rx
|
||||
}
|
||||
@@ -168,4 +171,4 @@ pub fn generate_sid() -> String {
|
||||
CHARSET[idx] as char
|
||||
})
|
||||
.collect()
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user