fix types typo

This commit is contained in:
wanghui 2019-11-15 16:19:06 +08:00
parent 52a05c3d0e
commit a1e5d8f094

View File

@ -40,7 +40,7 @@ const (
)
// TransferID is an identifier for a data transfer, shared between
// request/responder and unique to the requestor
// request/responder and unique to the requester
type TransferID uint64
// ChannelID is a unique identifier for a channel, distinct by both the other
@ -52,11 +52,11 @@ type ChannelID struct {
// Channel represents all the parameters for a single data transfer
type Channel struct {
// an identifier for this channel shared by request and responder, set by requestor through protocol
// an identifier for this channel shared by request and responder, set by requester through protocol
transferID TransferID
// base CID for the piece being transferred
baseCid cid.Cid
// portion of Piece to return, spescified by an IPLD selector
// portion of Piece to return, specified by an IPLD selector
selector ipld.Node
// used to verify this channel
voucher Voucher