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:
cloudhead 2024-05-17 14:32:39 +02:00
parent a4e10f0344
commit 3fe6bbe1cf
No known key found for this signature in database
1 changed files with 1 additions and 1 deletions

View File

@ -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")]