aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--vm/vm.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/vm/vm.go b/vm/vm.go
index ee40865d7..d2165a276 100644
--- a/vm/vm.go
+++ b/vm/vm.go
@@ -333,11 +333,7 @@ func (inst *Instance) Close() error {
}
func NewDispatcher(pool *Pool, def dispatcher.Runner[*Instance]) *dispatcher.Pool[*Instance] {
- return dispatcher.NewPool(pool.Count(),
- func(idx int) (*Instance, error) {
- return pool.Create(idx)
- },
- def)
+ return dispatcher.NewPool(pool.Count(), pool.Create, def)
}
type monitor struct {