Skip to content

Commit

Permalink
perf: change how payload looks like
Browse files Browse the repository at this point in the history
  • Loading branch information
abdulrahman1s committed Jul 11, 2022
1 parent e2fd6f0 commit be4edc7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/gateway/payload.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ impl From<(i64, i64)> for Empty {
}

#[derive(Serialize, Deserialize)]
#[serde(tag = "event")]
#[serde(tag = "op", content = "d")]
pub enum Payload {
Pong,
Authenticated,
Expand Down Expand Up @@ -60,7 +60,7 @@ pub enum Payload {
}

#[derive(Serialize, Deserialize)]
#[serde(tag = "event")]
#[serde(tag = "op", content = "d")]
pub enum ClientPayload {
Authenticate { token: String },
Ping,
Expand Down

0 comments on commit be4edc7

Please sign in to comment.