Skip to content

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
ilija42 committed Feb 20, 2025
1 parent 382b20d commit 303e48a
Show file tree
Hide file tree
Showing 4 changed files with 212 additions and 2 deletions.
146 changes: 146 additions & 0 deletions contracts/generated/contract_reader_interface/Createevent.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

32 changes: 32 additions & 0 deletions contracts/generated/contract_reader_interface/Createevent_test.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions pkg/solana/logpoller/log_poller.go
Original file line number Diff line number Diff line change
Expand Up @@ -468,7 +468,7 @@ func (lp *Service) replayComplete(from, to int64) bool {
return true
}

func appendBuffered(ch <-chan Block, max int, blocks []Block) []Block {
func appendBuffered(ch <-chan Block, maxNum int, blocks []Block) []Block {
for {
select {
case block, ok := <-ch:
Expand All @@ -477,7 +477,7 @@ func appendBuffered(ch <-chan Block, max int, blocks []Block) []Block {
}

blocks = append(blocks, block)
if len(blocks) >= max {
if len(blocks) >= maxNum {
return blocks
}
default:
Expand Down

0 comments on commit 303e48a

Please sign in to comment.