mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-06 00:54:23 +00:00
Switch manager to global app config
This commit is contained in:
@@ -30,11 +30,12 @@ type Instance struct {
|
||||
}
|
||||
|
||||
// New creates a new instance with the given name, log path, options and local node name
|
||||
func New(name string, globalConfig *config.AppConfig, opts *Options, localNodeName string, onStatusChange func(oldStatus, newStatus Status)) *Instance {
|
||||
func New(name string, globalConfig *config.AppConfig, opts *Options, onStatusChange func(oldStatus, newStatus Status)) *Instance {
|
||||
|
||||
globalInstanceSettings := &globalConfig.Instances
|
||||
globalBackendSettings := &globalConfig.Backends
|
||||
globalNodesConfig := globalConfig.Nodes
|
||||
localNodeName := globalConfig.LocalNode
|
||||
|
||||
// Validate and copy options
|
||||
opts.validateAndApplyDefaults(name, globalInstanceSettings)
|
||||
|
||||
Reference in New Issue
Block a user