chore: deprecate field 2 in waku_metadata.proto

This commit is contained in:
Richard Ramos 2024-03-07 11:24:38 -04:00
parent eb17d5032f
commit fdbd300390
No known key found for this signature in database
GPG Key ID: 1CE87DB518195760

View File

@ -5,10 +5,21 @@ package waku.metadata.v1;
message WakuMetadataRequest {
optional uint32 cluster_id = 1;
repeated uint32 shards = 2;
repeated uint32 shards = 3;
// Starting from nwaku v0.26, if field 3 contains no data, it will attempt to
// decode this field first assuming it's a packed field, and if that fails,
// attempt to decode as an unpacked field
repeated uint32 shards_deprecated = 2 [deprecated=true, packed=false];
}
message WakuMetadataResponse {
optional uint32 cluster_id = 1;
repeated uint32 shards = 2;
repeated uint32 shards = 3;
// Starting from nwaku v0.26, if field 3 contains no data, it will attempt to
// decode this field first assuming it's a packed field, and if that fails,
// attempt to decode as an unpacked field
repeated uint32 shards_deprecated = 2 [deprecated = true, packed=false];
}