Skip to content
Snippets Groups Projects
Commit 92043e55 authored by ale's avatar ale
Browse files

Merge branch 'master' into etcd-0.1

parents f66e5116 cee34d8f
No related branches found
No related tags found
No related merge requests found
......@@ -59,7 +59,9 @@ func (m *MasterElection) setState(state int) {
if m.State == state {
return
}
log.Printf("masterelection: status=%s", stateToString(state))
log.Printf("masterelection: %s -> %s",
stateToString(m.State),
stateToString(state))
if m.StateChange != nil {
m.StateChange <- state
}
......
......@@ -251,6 +251,9 @@ func (rc *RadioNode) Run() {
// Start the presence heartbeat.
go rc.presence()
// Start the masterelection runner.
go rc.me.Run()
log.Printf("starting icecast updater")
for {
select {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment