mirror of
https://gitlab.com/pulsechaincom/erigon-pulse.git
synced 2025-01-10 04:51:20 +00:00
e3: temporary remove semaphore (#888)
This commit is contained in:
parent
aa2b561741
commit
e57fe47ffb
@ -304,11 +304,6 @@ func (h *History) BuildMissedIndices(ctx context.Context, sem *semaphore.Weighte
|
||||
for _, item := range missedFiles {
|
||||
item := item
|
||||
g.Go(func() error {
|
||||
if err := sem.Acquire(ctx, 1); err != nil {
|
||||
return err
|
||||
}
|
||||
defer sem.Release(1)
|
||||
|
||||
search := &filesItem{startTxNum: item.startTxNum, endTxNum: item.endTxNum}
|
||||
iiItem, ok := h.InvertedIndex.files.Get(search)
|
||||
if !ok {
|
||||
|
@ -260,10 +260,6 @@ func (ii *InvertedIndex) BuildMissedIndices(ctx context.Context, sem *semaphore.
|
||||
for _, item := range missedFiles {
|
||||
item := item
|
||||
g.Go(func() error {
|
||||
if err := sem.Acquire(ctx, 1); err != nil {
|
||||
return err
|
||||
}
|
||||
defer sem.Release(1)
|
||||
fromStep, toStep := item.startTxNum/ii.aggregationStep, item.endTxNum/ii.aggregationStep
|
||||
fName := fmt.Sprintf("%s.%d-%d.efi", ii.filenameBase, fromStep, toStep)
|
||||
idxPath := filepath.Join(ii.dir, fName)
|
||||
|
Loading…
Reference in New Issue
Block a user