Merge pull request #390 from filecoin-project/fix/install

make: fix install, faster bootstrap
This commit is contained in:
Łukasz Magiera 2019-10-17 03:26:37 +02:00 committed by GitHub
commit 189e28f00b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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()