summaryrefslogtreecommitdiff
path: root/src/rhctl/playout_server.go
diff options
context:
space:
mode:
authorChristian Pointner <equinox@spreadspace.org>2016-03-27 20:14:59 (GMT)
committerChristian Pointner <equinox@spreadspace.org>2016-03-27 20:14:59 (GMT)
commit61f48b85e0c0301b1c5384c09c822bc5e2265a4f (patch)
treefba14c1d2a00340dfe9635bf50f6f257894b742d /src/rhctl/playout_server.go
parent3b9dc5639b9b26bb5a8e4324de47f77a00e0e86a (diff)
receiving of updates from switch as well from servers works now
Diffstat (limited to 'src/rhctl/playout_server.go')
-rw-r--r--src/rhctl/playout_server.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/rhctl/playout_server.go b/src/rhctl/playout_server.go
index 1f38f42..9f8b9d1 100644
--- a/src/rhctl/playout_server.go
+++ b/src/rhctl/playout_server.go
@@ -45,6 +45,7 @@ func (s ServerHealth) String() string {
}
type ServerStatus struct {
+ Name string
Health ServerHealth
Channel string
}
@@ -145,6 +146,7 @@ func ServerInit(name string, conf *Config) (srv *PlayoutServer, err error) {
if conf.Servers[name].HeartbeatThreshold > 0 {
srv.hbthreshold = conf.Servers[name].HeartbeatThreshold
}
+ srv.status.Name = srv.name
srv.status.Health = ServerDead
srv.status.Channel = ""
srv.Updates = make(chan ServerStatus, 8)