From 170b49b625884b917ed0f0886c7e738de3f004e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Magiera?= Date: Thu, 17 Oct 2019 03:24:45 +0200 Subject: [PATCH] make: fix install, faster bootstrap --- Makefile | 2 +- node/modules/core.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index cccd8e1b4..399fe6796 100644 --- a/Makefile +++ b/Makefile @@ -78,7 +78,7 @@ build: lotus lotus-storage-miner install: install -C ./lotus /usr/local/bin/lotus - install -C ./lotus /usr/local/bin/lotus-storage-miner + install -C ./lotus-storage-miner /usr/local/bin/lotus-storage-miner benchmarks: go run github.com/whyrusleeping/bencher ./... > bench.json diff --git a/node/modules/core.go b/node/modules/core.go index 8aaa52393..1b9b8b109 100644 --- a/node/modules/core.go +++ b/node/modules/core.go @@ -94,7 +94,7 @@ func Bootstrap(mctx helpers.MetricsCtx, lc fx.Lifecycle, host host.Host, pinfos OnStart: func(_ context.Context) error { go func() { for { - sctx, cancel := context.WithTimeout(ctx, build.BlockDelay*time.Second/2) + sctx, cancel := context.WithTimeout(ctx, 2*time.Second) <-sctx.Done() cancel()