Increase limit to the MAX (it's over 9000)

master
Jonas Franz 5 years ago committed by Jonas Franz
parent d53f3674fb
commit 8426f4c250
  1. 2
      cmd/root.go
  2. 2
      hal/module.go
  3. 2
      parser/from_config.go

@ -50,7 +50,7 @@ func runRootCommand(cmd *cobra.Command, args []string) error {
return err
}
defer logger.Close()
module, err := hal.NewHALModule(program, 256, 2, debug, logger)
module, err := hal.NewHALModule(program, 4096, 2, debug, logger)
if err != nil {
return err
}

@ -2,7 +2,7 @@ package hal
import "fmt"
const maxInstructions = 1000
const maxInstructions = 10000
type Program map[int64]*ProgrammedInstruction

@ -14,7 +14,7 @@ func GetModulesFromConfig(config *hal.ClusterConfig, debug bool, handler hal.Pag
return nil, err
}
// By default, all IO is the standard IO, we'll override it with channels where needed.
modules[node.Name], err = hal.NewNamedHALModule(program, 256, 4, debug, node.Name, handler)
modules[node.Name], err = hal.NewNamedHALModule(program, 4096, 4, debug, node.Name, handler)
if err != nil {
return nil, err
}

Loading…
Cancel
Save