Skip to content

Commit

Permalink
fix(subscription): fix service response issue
Browse files Browse the repository at this point in the history
Fix issue because of which type of event has been swapped with debug flags field.
  • Loading branch information
parfeon committed Mar 6, 2024
1 parent dab433d commit caba1a6
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/dx/subscribe/result.rs
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ pub struct Envelope {
/// PubNub defined event type.
#[cfg_attr(
feature = "serde",
serde(rename = "f"),
serde(rename = "e"),
serde(default = "Envelope::default_message_type")
)]
pub message_type: SubscribeMessageType,
Expand Down Expand Up @@ -240,8 +240,6 @@ pub struct Envelope {
pub channel: String,

/// Event payload.
///
/// Depending from
#[cfg_attr(feature = "serde", serde(rename = "d"))]
pub payload: EnvelopePayload,

Expand Down

0 comments on commit caba1a6

Please sign in to comment.