rename Cluster to Server

This commit is contained in:
Pavel Sviderski
2024-09-06 09:34:29 +10:00
parent 69c259aa8d
commit 2c46c0a7d5
2 changed files with 14 additions and 14 deletions
+2 -2
View File
@@ -108,7 +108,7 @@ func InitCluster(dataDir, machineName string, netPrefix netip.Prefix, users []*p
type Daemon struct {
state *machine.State
cluster *cluster.Cluster
cluster *cluster.Server
}
func New(dataDir string) (*Daemon, error) {
@@ -212,7 +212,7 @@ func (d *Daemon) Run(ctx context.Context) error {
if d.cluster != nil {
slog.Info("Stopping cluster.")
d.cluster.Stop()
slog.Info("Cluster stopped.")
slog.Info("Cluster server stopped.")
}
return nil
})