fix: typo

Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
Gaius 2023-01-13 15:22:33 +08:00
parent b3999871be
commit 269d864f55
No known key found for this signature in database
GPG Key ID: 8B4E5D1290FA2FFB
1 changed files with 4 additions and 4 deletions

View File

@ -207,13 +207,13 @@ message Metadata {
message Piece {
// Piece number.
uint32 number = 1 [(validate.rules).uint32.gte = 0];
// Parent peer id.
// Parent peer id.
string parent_id = 2 [(validate.rules).string = {min_len: 1, ignore_empty: true}];
// Piece offset.
// Piece offset.
uint64 offset = 3 [(validate.rules).uint64.gte = 0];
// Piece size.
// Piece size.
uint64 size = 4 [(validate.rules).uint64.gt = 0];
// Digest of the piece data, for example md5:xxx or sha256:yyy.
// Digest of the piece data, for example md5:xxx or sha256:yyy.
string digest = 5 [(validate.rules).string = {pattern: "^(md5)|(sha256):[A-Fa-f0-9]+$", ignore_empty: true}];
// Traffic type.
TrafficType traffic_type = 6;