Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .avalanche-golangci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ linters:
- nolintlint
- perfsprint
- prealloc
# - predeclared
- predeclared
- revive
- spancheck
- staticcheck
Expand Down
4 changes: 2 additions & 2 deletions plugin/evm/atomic/tx.go
Original file line number Diff line number Diff line change
Expand Up @@ -337,6 +337,6 @@ func CalculateDynamicFee(cost uint64, baseFee *big.Int) (uint64, error) {
return fee.Uint64(), nil
}

func calcBytesCost(len int) uint64 {
return uint64(len) * TxBytesGas
func calcBytesCost(n int) uint64 {
return uint64(n) * TxBytesGas
}
6 changes: 3 additions & 3 deletions utils/bounded_workers.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@ type BoundedWorkers struct {
}

// NewBoundedWorkers returns an instance of [BoundedWorkers] that
// will spawn up to [max] goroutines.
func NewBoundedWorkers(max int) *BoundedWorkers {
// will spawn up to count goroutines.
func NewBoundedWorkers(count int) *BoundedWorkers {
return &BoundedWorkers{
workerSpawner: make(chan struct{}, max),
workerSpawner: make(chan struct{}, count),
work: make(chan func()),
}
}
Expand Down
Loading