paramfetch review

This commit is contained in:
Łukasz Magiera 2019-10-03 01:36:33 +02:00
parent 713f08e9bf
commit 2dbd92073f
2 changed files with 5 additions and 3 deletions

View File

@ -75,8 +75,8 @@ build: $(BUILD_DEPS)
rm -f lotus lotus-storage-miner rm -f lotus lotus-storage-miner
go build -o lotus ./cmd/lotus go build -o lotus ./cmd/lotus
go build -o lotus-storage-miner ./cmd/lotus-storage-miner go build -o lotus-storage-miner ./cmd/lotus-storage-miner
rice append --exec lotus -i ./build go run github.com/GeertJohan/go.rice/rice append --exec lotus -i ./build
rice append --exec lotus-storage-miner -i ./build go run github.com/GeertJohan/go.rice/rice append --exec lotus-storage-miner -i ./build
.PHONY: build .PHONY: build
benchmarks: benchmarks:

View File

@ -27,7 +27,9 @@ type paramFile struct {
} }
func GetParams(storage bool) error { func GetParams(storage bool) error {
os.Mkdir(paramdir, 0755) if err := os.Mkdir(paramdir, 0755); err != nil {
return err
}
var params map[string]paramFile var params map[string]paramFile