obey the linter

This commit is contained in:
laser 2020-06-19 09:19:46 -07:00
parent de7d6c255c
commit fbeaab466a
2 changed files with 3 additions and 3 deletions

View File

@ -343,7 +343,7 @@ var setBlocklistCmd = &cli.Command{
if err != nil {
log.Fatal(err)
}
defer file.Close()
defer file.Close() //nolint:errcheck
scanner = bufio.NewScanner(file)
}

View File

@ -18,11 +18,11 @@ type AcceptingStorageDealsConfigFunc func() (bool, error)
// storage deal acceptance.
type SetAcceptingStorageDealsConfigFunc func(bool) error
// StorageDealCidBlocklistConfigFunc is a function which reads from miner config
// StorageDealPieceCidBlocklistConfigFunc is a function which reads from miner config
// to obtain a list of CIDs for which the storage miner will not accept storage
// proposals.
type StorageDealPieceCidBlocklistConfigFunc func() ([]cid.Cid, error)
// SetStorageDealCidBlocklistConfigFunc is a function which is used to set a
// SetStorageDealPieceCidBlocklistConfigFunc is a function which is used to set a
// list of CIDs for which the storage miner will reject deal proposals.
type SetStorageDealPieceCidBlocklistConfigFunc func([]cid.Cid) error