prysmaticlabs / prysm

Empty slice literal used to declare a variable GO-W1027
Anti-pattern
Minor
a month agoa year old
Empty slice literal of type "[]peer.ID" used to define "filteredPeers"
682}
683
684func (f *blocksFetcher) hasSufficientBandwidth(peers []peer.ID, count uint64) []peer.ID {
685	filteredPeers := []peer.ID{}686	for _, p := range peers {
687		if uint64(f.rateLimiter.Remaining(p.String())) < count {
688			continue