mirror of https://github.com/dragonflyoss/api.git
feat: change piece number to uint32 (#221)
Signed-off-by: Gaius <gaius.qi@gmail.com>
This commit is contained in:
parent
667eb7320d
commit
8e004ee5cc
|
@ -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"
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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.
Loading…
Reference in New Issue