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