diff --git a/pkg/repo/repo.go b/pkg/repo/repo.go index 0e690a44fd..4af4215651 100644 --- a/pkg/repo/repo.go +++ b/pkg/repo/repo.go @@ -36,7 +36,7 @@ type Repo interface { // MarketDatastore() Datastore PaychDatastore() Datastore - // SetJsonrpcAPIAddr sets the address of the running jsonrpc API. + // SetAPIAddr sets the address of the running jsonrpc API. SetAPIAddr(maddr string) error // APIAddr returns the address of the running API. diff --git a/venus-shared/api/market/client/api.go b/venus-shared/api/market/client/api.go index 2784bc525e..c39374016c 100644 --- a/venus-shared/api/market/client/api.go +++ b/venus-shared/api/market/client/api.go @@ -52,7 +52,7 @@ type IMarketClient interface { ClientGetRetrievalUpdates(ctx context.Context) (<-chan client.RetrievalInfo, error) //perm:write // ClientQueryAsk returns a signed StorageAsk from the specified miner. ClientQueryAsk(ctx context.Context, p peer.ID, miner address.Address) (*storagemarket.StorageAsk, error) //perm:read - // ClientCalcCommP calculates the CommP and data size of the specified CID + // ClientDealPieceCID calculates the CommP and data size of the specified CID ClientDealPieceCID(ctx context.Context, root cid.Cid) (client.DataCIDSize, error) //perm:read // ClientCalcCommP calculates the CommP for a specified file ClientCalcCommP(ctx context.Context, inpath string) (*client.CommPRet, error) //perm:write @@ -60,7 +60,7 @@ type IMarketClient interface { ClientGenCar(ctx context.Context, ref client.FileRef, outpath string) error //perm:write // ClientDealSize calculates real deal data size ClientDealSize(ctx context.Context, root cid.Cid) (client.DataSize, error) //perm:read - // ClientListTransfers returns the status of all ongoing transfers of data + // ClientListDataTransfers returns the status of all ongoing transfers of data ClientListDataTransfers(ctx context.Context) ([]market.DataTransferChannel, error) //perm:write ClientDataTransferUpdates(ctx context.Context) (<-chan market.DataTransferChannel, error) //perm:write // ClientRestartDataTransfer attempts to restart a data transfer with the given transfer ID and other peer diff --git a/venus-shared/types/api_types.go b/venus-shared/types/api_types.go index b06353e5c3..5a400e6a60 100644 --- a/venus-shared/types/api_types.go +++ b/venus-shared/types/api_types.go @@ -322,7 +322,7 @@ type ChannelAvailableFunds struct { PendingWaitSentinel *cid.Cid // QueuedAmt is the amount that is queued up behind a pending request QueuedAmt BigInt - // VoucherRedeemedAmt is the amount that is redeemed by vouchers on-chain + // VoucherReedeemedAmt is the amount that is redeemed by vouchers on-chain // and in the local datastore VoucherReedeemedAmt BigInt }