From 07b9b2b895bc72f2606dfddab100574fe2dd7389 Mon Sep 17 00:00:00 2001 From: timyinshi Date: Tue, 9 Mar 2021 20:01:29 +0800 Subject: [PATCH 1/3] modify the comment of DstIP Signed-off-by: timyinshi --- apis/types/piece_error_request.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis/types/piece_error_request.go b/apis/types/piece_error_request.go index 380db1009..b98774e9b 100644 --- a/apis/types/piece_error_request.go +++ b/apis/types/piece_error_request.go @@ -19,7 +19,7 @@ import ( // swagger:model PieceErrorRequest type PieceErrorRequest struct { - // the peer ID of the target Peer. + // the peer IP of the target Peer. // DstIP string `json:"dstIP,omitempty"` From d0490cba9a1fb1a1812ca64d0e41890d574bc710 Mon Sep 17 00:00:00 2001 From: timyinshi Date: Wed, 10 Mar 2021 14:44:03 +0800 Subject: [PATCH 2/3] modify the error comment of dstIP --- apis/swagger.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apis/swagger.yml b/apis/swagger.yml index a7e8d91bd..7e3e28fd4 100644 --- a/apis/swagger.yml +++ b/apis/swagger.yml @@ -1263,7 +1263,7 @@ definitions: dstIP: type: "string" description: | - the peer ID of the target Peer. + the peer IP of the target Peer. range: type: "string" description: | From 8e2391fe22927f9beb16b79c3f8db5ffd3bb84a0 Mon Sep 17 00:00:00 2001 From: timyinshi Date: Wed, 10 Mar 2021 16:36:22 +0800 Subject: [PATCH 3/3] modify the error comment of dstIP in apis.md Signed-off-by: timyinshi --- docs/api_reference/apis.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/api_reference/apis.md b/docs/api_reference/apis.md index c8b44181d..3fed0fdfb 100644 --- a/docs/api_reference/apis.md +++ b/docs/api_reference/apis.md @@ -981,7 +981,7 @@ Peer's detailed information in supernode. |Name|Description|Schema| |---|---|---| -|**dstIP**
*optional*|the peer ID of the target Peer.|string| +|**dstIP**
*optional*|the peer IP of the target Peer.|string| |**dstPid**
*optional*|the peer ID of the target Peer.|string| |**errorType**
*optional*|the error type when failed to download from supernode that dfget will report to supernode|enum (FILE_NOT_EXIST, FILE_MD5_NOT_MATCH)| |**expectedMd5**
*optional*|the MD5 value of piece which returned by the supernode that
in order to verify the correctness of the piece content which
downloaded from the other peers.|string|