rename Machine message to MachineInfo to not conflict with the service name

This commit is contained in:
Pavel Sviderski
2024-09-08 13:40:43 +10:00
parent f49e91b41f
commit 45cacfa6f5
6 changed files with 145 additions and 150 deletions
+2 -2
View File
@@ -17,7 +17,7 @@ func StatePath(dataDir string) string {
func NewState(path string) *State {
return &State{
State: &pb.State{
Machines: make(map[string]*pb.Machine),
Machines: make(map[string]*pb.MachineInfo),
Endpoints: make(map[string]*pb.MachineEndpoints),
},
path: path,
@@ -33,7 +33,7 @@ func (s *State) Load() error {
return fmt.Errorf("parse state file %q: %w", s.path, err)
}
if s.State.Machines == nil {
s.State.Machines = make(map[string]*pb.Machine)
s.State.Machines = make(map[string]*pb.MachineInfo)
}
if s.State.Endpoints == nil {
s.State.Endpoints = make(map[string]*pb.MachineEndpoints)