Skip to content

Commit

Permalink
some minor modifications.
Browse files Browse the repository at this point in the history
  • Loading branch information
gudaoxuri committed Feb 26, 2023
1 parent 6f8af80 commit 4d00777
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tardis/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -170,7 +170,7 @@ required-features = ["test", "reldb"]

[[test]]
name = "test_web_server"
required-features = ["test", "web-server", "cache", "web-client"]
required-features = ["test", "web-server", "cache", "web-client", "crypto"]

[[test]]
name = "test_web_client"
Expand Down
4 changes: 2 additions & 2 deletions tardis/src/db/reldb_client.rs
Original file line number Diff line number Diff line change
Expand Up @@ -346,7 +346,7 @@ impl TardisRelDBClient {
where
C: ConnectionTrait,
{
trace!("[Tardis.RelDBClient] Quering one sql {}, params:{:?}", sql, params);
trace!("[Tardis.RelDBClient] Querying one sql {}, params:{:?}", sql, params);
let query_stmt = Statement::from_sql_and_values(db.get_database_backend(), sql, params);
let result = db.query_one(query_stmt).await;
match result {
Expand All @@ -359,7 +359,7 @@ impl TardisRelDBClient {
where
C: ConnectionTrait,
{
trace!("[Tardis.RelDBClient] Quering all sql {}, params:{:?}", sql, params);
trace!("[Tardis.RelDBClient] Querying all sql {}, params:{:?}", sql, params);
let query_stmt = Statement::from_sql_and_values(db.get_database_backend(), sql, params);
let result = db.query_all(query_stmt).await;
match result {
Expand Down
6 changes: 3 additions & 3 deletions tardis/tests/test_websocket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -204,8 +204,8 @@ async fn test_dyn_avatar() -> TardisResult<()> {
let receive_msg = TardisFuns::json.str_to_obj::<TardisWebsocketMgrMessage>(&msg).unwrap();
if receive_msg.event == Some(WS_SYSTEM_EVENT_AVATAR_ADD.to_string()) && receive_msg.msg.as_str().unwrap() == "c" {
ADD_COUNTER.fetch_add(1, Ordering::SeqCst);
let from_avator = receive_msg.from_avatar.clone();
return Some(TardisFuns::json.obj_to_string(&receive_msg.into_req(json! {"c"}, from_avator.clone(), Some(vec![from_avator]))).unwrap());
let from_avatar = receive_msg.from_avatar.clone();
return Some(TardisFuns::json.obj_to_string(&receive_msg.into_req(json! {"c"}, from_avatar.clone(), Some(vec![from_avatar]))).unwrap());
}
if receive_msg.event == Some(WS_SYSTEM_EVENT_AVATAR_DEL.to_string()) && receive_msg.msg.as_str().unwrap() == "c" {
assert!(1 == 2);
Expand Down Expand Up @@ -279,7 +279,7 @@ async fn test_dyn_avatar() -> TardisResult<()> {
})
.await?;

// fech info
// fetch info
a_client
.send_obj(&TardisWebsocketReq {
msg: json! {""},
Expand Down

0 comments on commit 4d00777

Please sign in to comment.