Fixed non-working example due to loader interface change
@@ -345,7 +345,11 @@ func main() {
}
executerOpts.WorkflowLoader = workflowLoader
- store, err := loader.New(loader.NewConfig(defaultOpts, catalog, executerOpts))
+ configObject, err := config.ReadConfiguration()
+ if err != nil {
+ log.Fatalf("Could not read config: %s\n", err)
+ }
+ store, err := loader.New(loader.NewConfig(defaultOpts, configObject, catalog, executerOpts))
if err != nil {
log.Fatalf("Could not create loader client: %s\n", err)
}
