From 5d52b9c19a46ca82e0b6504348906f8ef1ed47f1 Mon Sep 17 00:00:00 2001 From: Jonni Liljamo Date: Wed, 27 Nov 2024 09:56:55 +0200 Subject: [PATCH] feat!: remove worker_id from worker message, change msg/cmd to payload --- proto/workercontrol.proto | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/proto/workercontrol.proto b/proto/workercontrol.proto index 2ab40da..c4da158 100644 --- a/proto/workercontrol.proto +++ b/proto/workercontrol.proto @@ -8,10 +8,9 @@ service WorkerControlService { } message WorkerMessage { - string worker_id = 1; - oneof msg { - RegistrationMessage registration = 2; - TargetStateMessage target_state = 3; + oneof payload { + RegistrationMessage registration = 1; + TargetStateMessage target_state = 2; } } @@ -23,7 +22,7 @@ message TargetStateMessage { } message ServerCommand { - oneof cmd { + oneof payload { TargetsCommand targets = 1; } } -- 2.44.1