Skip to content

Commit

Permalink
fix static check error: should use for range instead of for { select …
Browse files Browse the repository at this point in the history
  • Loading branch information
ramilexe committed May 2, 2024
1 parent e41d284 commit 959360e
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions vm/vm.go
Original file line number Diff line number Diff line change
Expand Up @@ -339,10 +339,8 @@ func (vm *LandslideVM) Initialize(_ context.Context, req *vmpb.InitializeRequest

go func() {
for {
select {
case <-vm.mempool.TxsAvailable():
vm.toEngine <- messengerpb.Message_MESSAGE_BUILD_BLOCK
}
<-vm.mempool.TxsAvailable()
vm.toEngine <- messengerpb.Message_MESSAGE_BUILD_BLOCK
}
}()

Expand Down

0 comments on commit 959360e

Please sign in to comment.