node: Update control sock command tag
Breaking change: when writing to the node socket, command names should be specified via the `"command"` field instead of the `"type"` field. This was changed to be more readable.
This commit is contained in:
parent
a4e10f0344
commit
3fe6bbe1cf
|
|
@ -452,7 +452,7 @@ impl From<Address> for HostName {
|
|||
|
||||
/// Command name.
|
||||
#[derive(Debug, Clone, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "camelCase", tag = "type")]
|
||||
#[serde(rename_all = "camelCase", tag = "command")]
|
||||
pub enum Command {
|
||||
/// Announce repository references for given repository to peers.
|
||||
#[serde(rename_all = "camelCase")]
|
||||
|
|
|
|||
Loading…
Reference in New Issue