diff --git a/x/move/keeper/vmpool.go b/x/move/keeper/vmpool.go index 167c3b11..5d014448 100644 --- a/x/move/keeper/vmpool.go +++ b/x/move/keeper/vmpool.go @@ -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) + } k.moveVMMutx.Lock() vm, *k.moveVMs = (*k.moveVMs)[0], (*k.moveVMs)[1:]