Skip to content

Commit

Permalink
⚗️ (tracing-msg): ClientRole移动到上层
Browse files Browse the repository at this point in the history
  • Loading branch information
czy-29 committed Jan 13, 2025
1 parent dee0c9a commit 1b982ee
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 9 deletions.
10 changes: 9 additions & 1 deletion tracing-surreal/src/tracing_msg.rs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ pub mod layer;
pub mod observe;
pub mod proc_env;

pub use handshake::{ClientRole, Handshake, MsgFormat};
pub use handshake::{Handshake, MsgFormat};
pub use layer::TracingLayerDefault;
pub use observe::observer;
pub use proc_env::ProcEnv;
Expand Down Expand Up @@ -417,6 +417,14 @@ impl From<MsgBody> for TracingMsg {
}
}

#[derive(Serialize, Deserialize, Debug, Copy, Clone, Eq, PartialEq, Hash)]
#[serde(rename_all = "lowercase")]
pub enum ClientRole {
Pusher,
Observer,
Director,
}

#[derive(Serialize, Deserialize, Debug, Copy, Clone, Eq, PartialEq, Hash)]
#[serde(rename_all = "lowercase")]
pub enum Role {
Expand Down
8 changes: 0 additions & 8 deletions tracing-surreal/src/tracing_msg/handshake.rs
Original file line number Diff line number Diff line change
@@ -1,14 +1,6 @@
use super::ProcEnv;
use serde::{Deserialize, Serialize};

#[derive(Serialize, Deserialize, Debug, Copy, Clone, Eq, PartialEq, Hash)]
#[serde(rename_all = "lowercase")]
pub enum ClientRole {
Pusher,
Observer,
Director,
}

#[derive(Serialize, Deserialize, Default, Debug, Copy, Clone, Eq, PartialEq, Hash)]
#[serde(rename_all = "lowercase")]
pub enum MsgFormat {
Expand Down

0 comments on commit 1b982ee

Please sign in to comment.