Remove dead example code + dep
This commit is contained in:
parent
1993efe201
commit
c4a7de9d37
@ -15,7 +15,6 @@ import (
|
|||||||
"github.com/filecoin-project/go-bitfield"
|
"github.com/filecoin-project/go-bitfield"
|
||||||
"github.com/google/uuid"
|
"github.com/google/uuid"
|
||||||
"github.com/ipfs/go-cid"
|
"github.com/ipfs/go-cid"
|
||||||
"github.com/ipfs/go-filestore"
|
|
||||||
"github.com/libp2p/go-libp2p-core/metrics"
|
"github.com/libp2p/go-libp2p-core/metrics"
|
||||||
"github.com/libp2p/go-libp2p-core/network"
|
"github.com/libp2p/go-libp2p-core/network"
|
||||||
"github.com/libp2p/go-libp2p-core/peer"
|
"github.com/libp2p/go-libp2p-core/peer"
|
||||||
@ -24,7 +23,7 @@ import (
|
|||||||
"github.com/multiformats/go-multiaddr"
|
"github.com/multiformats/go-multiaddr"
|
||||||
|
|
||||||
datatransfer "github.com/filecoin-project/go-data-transfer"
|
datatransfer "github.com/filecoin-project/go-data-transfer"
|
||||||
filestore2 "github.com/filecoin-project/go-fil-markets/filestore"
|
filestore "github.com/filecoin-project/go-fil-markets/filestore"
|
||||||
"github.com/filecoin-project/go-fil-markets/retrievalmarket"
|
"github.com/filecoin-project/go-fil-markets/retrievalmarket"
|
||||||
"github.com/filecoin-project/go-jsonrpc/auth"
|
"github.com/filecoin-project/go-jsonrpc/auth"
|
||||||
textselector "github.com/ipld/go-ipld-selector-text-lite"
|
textselector "github.com/ipld/go-ipld-selector-text-lite"
|
||||||
@ -110,7 +109,6 @@ func init() {
|
|||||||
addExample(abi.UnpaddedPieceSize(1024))
|
addExample(abi.UnpaddedPieceSize(1024))
|
||||||
addExample(abi.UnpaddedPieceSize(1024).Padded())
|
addExample(abi.UnpaddedPieceSize(1024).Padded())
|
||||||
addExample(abi.DealID(5432))
|
addExample(abi.DealID(5432))
|
||||||
addExample(filestore.StatusFileChanged)
|
|
||||||
addExample(abi.SectorNumber(9))
|
addExample(abi.SectorNumber(9))
|
||||||
addExample(abi.SectorSize(32 * 1024 * 1024 * 1024))
|
addExample(abi.SectorSize(32 * 1024 * 1024 * 1024))
|
||||||
addExample(api.MpoolChange(0))
|
addExample(api.MpoolChange(0))
|
||||||
@ -178,7 +176,7 @@ func init() {
|
|||||||
ExampleValues[reflect.TypeOf(struct{ A multiaddr.Multiaddr }{}).Field(0).Type] = maddr
|
ExampleValues[reflect.TypeOf(struct{ A multiaddr.Multiaddr }{}).Field(0).Type] = maddr
|
||||||
|
|
||||||
// miner specific
|
// miner specific
|
||||||
addExample(filestore2.Path(".lotusminer/fstmp123"))
|
addExample(filestore.Path(".lotusminer/fstmp123"))
|
||||||
si := uint64(12)
|
si := uint64(12)
|
||||||
addExample(&si)
|
addExample(&si)
|
||||||
addExample(retrievalmarket.DealID(5))
|
addExample(retrievalmarket.DealID(5))
|
||||||
|
1
go.mod
1
go.mod
@ -77,7 +77,6 @@ require (
|
|||||||
github.com/ipfs/go-ds-leveldb v0.4.2
|
github.com/ipfs/go-ds-leveldb v0.4.2
|
||||||
github.com/ipfs/go-ds-measure v0.1.0
|
github.com/ipfs/go-ds-measure v0.1.0
|
||||||
github.com/ipfs/go-ds-pebble v0.0.2-0.20200921225637-ce220f8ac459
|
github.com/ipfs/go-ds-pebble v0.0.2-0.20200921225637-ce220f8ac459
|
||||||
github.com/ipfs/go-filestore v1.0.0
|
|
||||||
github.com/ipfs/go-fs-lock v0.0.6
|
github.com/ipfs/go-fs-lock v0.0.6
|
||||||
github.com/ipfs/go-graphsync v0.10.1
|
github.com/ipfs/go-graphsync v0.10.1
|
||||||
github.com/ipfs/go-ipfs-blockstore v1.0.4
|
github.com/ipfs/go-ipfs-blockstore v1.0.4
|
||||||
|
Loading…
Reference in New Issue
Block a user