mirror of
https://github.com/lordmathis/llamactl.git
synced 2025-11-06 00:54:23 +00:00
Refactor Status struct
This commit is contained in:
@@ -289,7 +289,7 @@ func (im *instanceManager) loadInstance(name, path string) error {
|
||||
|
||||
// Restore persisted fields that NewInstance doesn't set
|
||||
inst.Created = persistedInstance.Created
|
||||
inst.SetStatus(persistedInstance.Status)
|
||||
inst.SetStatus(persistedInstance.GetStatus())
|
||||
|
||||
// Handle remote instance mapping
|
||||
if isRemote {
|
||||
|
||||
@@ -39,7 +39,7 @@ func (im *instanceManager) updateLocalInstanceFromRemote(localInst *instance.Ins
|
||||
|
||||
// Update the local instance with all remote data
|
||||
localInst.SetOptions(&updatedOptions)
|
||||
localInst.Status = remoteInst.Status
|
||||
localInst.SetStatus(remoteInst.GetStatus())
|
||||
localInst.Created = remoteInst.Created
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user