feat: change piece number to uint32 (#221)

Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
Gaius 2023-11-20 20:30:41 +08:00 committed by GitHub
parent 667eb7320d
commit 8e004ee5cc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -1,6 +1,6 @@
[package]
name = "dragonfly-api"
version = "2.0.55"
version = "2.0.56"
authors = ["Gaius <gaius.qi@gmail.com>"]
edition = "2021"
license = "Apache-2.0"

View File

@ -350,7 +350,7 @@ message Range {
// Piece represents information of piece.
message Piece {
// Piece number.
int32 number = 1;
uint32 number = 1;
// Parent peer id.
optional string parent_id = 2;
// Piece offset.

View File

@ -380,8 +380,8 @@ pub struct Range {
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Piece {
/// Piece number.
#[prost(int32, tag = "1")]
pub number: i32,
#[prost(uint32, tag = "1")]
pub number: u32,
/// Parent peer id.
#[prost(string, optional, tag = "2")]
pub parent_id: ::core::option::Option<::prost::alloc::string::String>,

Binary file not shown.