remove init and use Exec

This commit is contained in:
2024-09-20 13:13:20 +03:00
parent b66891a646
commit e6e701a609
2 changed files with 2 additions and 14 deletions

View File

@@ -96,7 +96,7 @@ func main() {
en = en.WithDebug(nil)
}
_, err = en.Init(ctx)
_, err = en.Exec(ctx, []byte{})
if err != nil {
fmt.Fprintf(os.Stderr, "engine init exited with error: %v\n", err)
os.Exit(1)