mirror of
https://github.com/YGGverse/aquatic.git
synced 2026-03-31 17:55:36 +00:00
http_protocol: skip serializing AnnounceResponse.warning_message if None
This commit is contained in:
parent
92b62e73ca
commit
6eb1375e4e
1 changed files with 1 additions and 1 deletions
|
|
@ -51,7 +51,7 @@ pub struct AnnounceResponse {
|
|||
pub peers: ResponsePeerListV4,
|
||||
#[serde(default)]
|
||||
pub peers6: ResponsePeerListV6,
|
||||
#[serde(rename = "warning message")]
|
||||
#[serde(rename = "warning message", skip_serializing_if = "Option::is_none")]
|
||||
pub warning_message: Option<String>,
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue