refactor/remove-cluster-id: (#220)
### Remove `cluster_id` Field from Protocol Buffers - **Removed `cluster_id` Field**: The `cluster_id` field has been removed from the `RequestHeader` and `ResponseHeader` messages across multiple langua bindings and source files. This includes updates to: - C++: `common.pb.cc`, `common.pb.h` - Go: `common.pb.go` - Java: `Common.java` - Proto: `common.proto` - Rust: `meta.rs` These changes streamline the protocol by eliminating the `cluster_id` field, simplifying the message structures and related logic.
This commit is contained in:
@@ -20,8 +20,6 @@ option go_package = "github.com/GreptimeTeam/greptime-proto/go/greptime/v1/meta"
|
||||
|
||||
message RequestHeader {
|
||||
uint64 protocol_version = 1;
|
||||
// cluster_id is the ID of the cluster which be sent to.
|
||||
uint64 cluster_id = 2;
|
||||
// member_id is the ID of the sender server.
|
||||
uint64 member_id = 3;
|
||||
Role role = 4;
|
||||
@@ -38,8 +36,6 @@ enum Role {
|
||||
|
||||
message ResponseHeader {
|
||||
uint64 protocol_version = 1;
|
||||
// cluster_id is the ID of the cluster which sent the response.
|
||||
uint64 cluster_id = 2;
|
||||
Error error = 3;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user