From 3fe6bbe1cfe220295c3cb376b504089af4715f31 Mon Sep 17 00:00:00 2001 From: cloudhead Date: Fri, 17 May 2024 14:32:39 +0200 Subject: [PATCH] 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. --- radicle/src/node.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/radicle/src/node.rs b/radicle/src/node.rs index 0bd78673..98183027 100644 --- a/radicle/src/node.rs +++ b/radicle/src/node.rs @@ -452,7 +452,7 @@ impl From
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")]