mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2024-12-22 11:41:19 +00:00
Use buffered channel (#8403)
This commit is contained in:
parent
c6f63ff32e
commit
57cc5ccc6d
4
Makefile
4
Makefile
@ -143,11 +143,11 @@ db-tools:
|
||||
## test: run unit tests with a 100s timeout
|
||||
test:
|
||||
@cd erigon-lib && $(MAKE) test
|
||||
$(GOTEST) --timeout 100s
|
||||
$(GOTEST) --timeout 10m
|
||||
|
||||
test3:
|
||||
@cd erigon-lib && $(MAKE) test
|
||||
$(GOTEST) --timeout 100s -tags $(BUILD_TAGS),e3
|
||||
$(GOTEST) --timeout 10m -tags $(BUILD_TAGS),e3
|
||||
|
||||
## test-integration: run integration tests with a 30m timeout
|
||||
test-integration:
|
||||
|
@ -70,7 +70,7 @@ func (e *EthereumExecutionModule) UpdateForkChoice(ctx context.Context, req *exe
|
||||
safeHash := gointerfaces.ConvertH256ToHash(req.SafeBlockHash)
|
||||
finalizedHash := gointerfaces.ConvertH256ToHash(req.FinalizedBlockHash)
|
||||
|
||||
outcomeCh := make(chan forkchoiceOutcome)
|
||||
outcomeCh := make(chan forkchoiceOutcome, 1)
|
||||
|
||||
// So we wait at most the amount specified by req.Timeout before just sending out
|
||||
go e.updateForkChoice(ctx, blockHash, safeHash, finalizedHash, outcomeCh)
|
||||
|
Loading…
Reference in New Issue
Block a user