Skip to content

Commit

Permalink
fix lint
Browse files Browse the repository at this point in the history
  • Loading branch information
beer-1 committed Sep 26, 2024
1 parent e809999 commit b3dd211
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion x/move/keeper/vmpool.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,10 @@ import (
)

func (k Keeper) acquireVM(ctx context.Context) (vm types.VMEngine) {
k.moveVMSemaphore.Acquire(ctx, 1)
err := k.moveVMSemaphore.Acquire(ctx, 1)
if err != nil {
panic(err)

Check warning on line 12 in x/move/keeper/vmpool.go

View check run for this annotation

Codecov / codecov/patch

x/move/keeper/vmpool.go#L12

Added line #L12 was not covered by tests
}

k.moveVMMutx.Lock()
vm, *k.moveVMs = (*k.moveVMs)[0], (*k.moveVMs)[1:]
Expand Down

0 comments on commit b3dd211

Please sign in to comment.