Skip to content

Commit

Permalink
refactor: Improve GetBeaconBlock function's concurrency limit
Browse files Browse the repository at this point in the history
  • Loading branch information
samcm committed Sep 22, 2023
1 parent f8d8eba commit 2fd2f7d
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion pkg/cannon/ethereum/beacon.go
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,6 @@ func (b *BeaconNode) Synced(ctx context.Context) error {
}

// GetBeaconBlock returns a beacon block by its identifier. Blocks can be cached internally.
// This function has been updated to use a semaphore to limit the number of concurrent goroutines.
func (b *BeaconNode) GetBeaconBlock(ctx context.Context, identifier string, ignoreMetrics ...bool) (*spec.VersionedSignedBeaconBlock, error) {
b.metrics.IncBlocksFetched(string(b.Metadata().Network.Name))

Expand Down

0 comments on commit 2fd2f7d

Please sign in to comment.