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]
|
[package]
|
||||||
name = "dragonfly-api"
|
name = "dragonfly-api"
|
||||||
version = "2.0.55"
|
version = "2.0.56"
|
||||||
authors = ["Gaius <gaius.qi@gmail.com>"]
|
authors = ["Gaius <gaius.qi@gmail.com>"]
|
||||||
edition = "2021"
|
edition = "2021"
|
||||||
license = "Apache-2.0"
|
license = "Apache-2.0"
|
||||||
|
|
|
@ -350,7 +350,7 @@ message Range {
|
||||||
// Piece represents information of piece.
|
// Piece represents information of piece.
|
||||||
message Piece {
|
message Piece {
|
||||||
// Piece number.
|
// Piece number.
|
||||||
int32 number = 1;
|
uint32 number = 1;
|
||||||
// Parent peer id.
|
// Parent peer id.
|
||||||
optional string parent_id = 2;
|
optional string parent_id = 2;
|
||||||
// Piece offset.
|
// Piece offset.
|
||||||
|
|
|
@ -380,8 +380,8 @@ pub struct Range {
|
||||||
#[derive(Clone, PartialEq, ::prost::Message)]
|
#[derive(Clone, PartialEq, ::prost::Message)]
|
||||||
pub struct Piece {
|
pub struct Piece {
|
||||||
/// Piece number.
|
/// Piece number.
|
||||||
#[prost(int32, tag = "1")]
|
#[prost(uint32, tag = "1")]
|
||||||
pub number: i32,
|
pub number: u32,
|
||||||
/// Parent peer id.
|
/// Parent peer id.
|
||||||
#[prost(string, optional, tag = "2")]
|
#[prost(string, optional, tag = "2")]
|
||||||
pub parent_id: ::core::option::Option<::prost::alloc::string::String>,
|
pub parent_id: ::core::option::Option<::prost::alloc::string::String>,
|
||||||
|
|
Binary file not shown.
Loading…
Reference in New Issue