Skip to content

Commit

Permalink
fix: don't render topic/timestamp to the ua
Browse files Browse the repository at this point in the history
  • Loading branch information
pjenvey committed Aug 8, 2018
1 parent 2af3b06 commit 8aa47af
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/protocol.rs
Original file line number Diff line number Diff line change
Expand Up @@ -138,8 +138,9 @@ pub struct Notification {
pub version: String,
#[serde(default = "default_ttl", skip_serializing)]
pub ttl: u64,
#[serde(skip_serializing_if = "Option::is_none")]
#[serde(skip_serializing)]
pub topic: Option<String>,
#[serde(skip_serializing)]
pub timestamp: u64,
#[serde(skip_serializing_if = "Option::is_none")]
pub data: Option<String>,
Expand Down

0 comments on commit 8aa47af

Please sign in to comment.