When creating a new cluster from config, make sure we also have the default io

master
kolaente 5 years ago
parent f9c99d8e12
commit 5efab86f1a
Signed by: kolaente
GPG Key ID: F40E70337AB24C9B
  1. 5
      parser/from_config.go

@ -4,7 +4,7 @@ import (
"git.jfdev.de/JonasFranzDEV/hal/hal"
)
func getModulesFromConfig(config *hal.ClusterConfig) (modules map[string]*hal.Module, err error) {
func getModulesFromConfig(config *hal.ClusterConfig, debug bool) (modules map[string]*hal.Module, err error) {
// all modules with their name as key
modules = make(map[string]*hal.Module)
@ -13,7 +13,8 @@ func getModulesFromConfig(config *hal.ClusterConfig) (modules map[string]*hal.Mo
if err != nil {
return nil, err
}
modules[node.Name], err = hal.NewHALModule(program, 256, 0, false)
// By default, all IO is the standard IO, we'll override it with channels where needed.
modules[node.Name], err = hal.NewHALModule(program, 256, 4, debug)
if err != nil {
return nil, err
}

Loading…
Cancel
Save