Use buffered channel (#8403)

This commit is contained in:
Giulio rebuffo 2023-10-08 19:26:54 +02:00 committed by GitHub
parent c6f63ff32e
commit 57cc5ccc6d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 3 deletions

View File

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

View File

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