make: fix install, faster bootstrap
This commit is contained in:
parent
39e2f766c8
commit
170b49b625
2
Makefile
2
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
|
||||
|
@ -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()
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user