Skip to content

Commit

Permalink
chore (cleanup): remove useless state properties
Browse files Browse the repository at this point in the history
  • Loading branch information
mickael-kerjean committed Jan 22, 2024
1 parent 250d186 commit 7efbf4f
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 0 additions & 6 deletions webfleet/model/machine.go
Original file line number Diff line number Diff line change
Expand Up @@ -96,12 +96,6 @@ func GetMachineInfo() []byte {
}
return execCmd("uname", "-m")
}(),
PublicIP: func() string {
return ""
}(),
PrivateIP: func() string {
return ""
}(),
IsOnline: func() bool {
return true
}(),
Expand Down
4 changes: 1 addition & 3 deletions webfleet/model/server_state.go
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ type Server struct {
Os string `json:"os"`
Kernel string `json:"kernel"`
Arch string `json:"arch"`
PublicIP string `json:"publicIP"`
PrivateIP string `json:"privateIP"`
IsOnline bool `json:"isOnline"`
}

Expand All @@ -40,7 +38,7 @@ func (this *ServerManager) Add(tenant string, info map[string]interface{}) error
this.db.Store(tenant, Server{
tenant, str(info["machineID"]), str(info["device"]),
str(info["hostname"]), str(info["os"]), str(info["kernel"]), str(info["arch"]),
str(info["publicIp"]), str(info["privateIP"]), true,
true,
})
return nil
}
Expand Down

0 comments on commit 7efbf4f

Please sign in to comment.