Skip to content

Commit

Permalink
Change ID types from uint64 to sint64 (#2485)
Browse files Browse the repository at this point in the history
  • Loading branch information
panh99 authored Oct 7, 2023
1 parent 6a23be1 commit b9ae24a
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/proto/flwr/proto/driver.proto
Original file line number Diff line number Diff line change
Expand Up @@ -36,10 +36,10 @@ service Driver {

// CreateWorkload
message CreateWorkloadRequest {}
message CreateWorkloadResponse { uint64 workload_id = 1; }
message CreateWorkloadResponse { sint64 workload_id = 1; }

// GetNodes messages
message GetNodesRequest { uint64 workload_id = 1; }
message GetNodesRequest { sint64 workload_id = 1; }
message GetNodesResponse { repeated Node nodes = 1; }

// PushTaskIns messages
Expand Down
2 changes: 1 addition & 1 deletion src/proto/flwr/proto/node.proto
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,6 @@ syntax = "proto3";
package flwr.proto;

message Node {
uint64 node_id = 1;
sint64 node_id = 1;
bool anonymous = 2;
}
4 changes: 2 additions & 2 deletions src/proto/flwr/proto/task.proto
Original file line number Diff line number Diff line change
Expand Up @@ -36,14 +36,14 @@ message Task {
message TaskIns {
string task_id = 1;
string group_id = 2;
uint64 workload_id = 3;
sint64 workload_id = 3;
Task task = 4;
}

message TaskRes {
string task_id = 1;
string group_id = 2;
uint64 workload_id = 3;
sint64 workload_id = 3;
Task task = 4;
}

Expand Down
2 changes: 1 addition & 1 deletion src/py/flwr/proto/driver_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/py/flwr/proto/node_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/py/flwr/proto/task_pb2.py

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit b9ae24a

Please sign in to comment.