Skip to content
Snippets Groups Projects
Commit 4fe23f7c authored by ale's avatar ale
Browse files

functions called Run should not return

parent 5bd25acc
Branches
No related tags found
No related merge requests found
...@@ -144,10 +144,10 @@ func (w *ConfigSyncer) updateConfigWithResponse(key, value string) { ...@@ -144,10 +144,10 @@ func (w *ConfigSyncer) updateConfigWithResponse(key, value string) {
} }
} }
// Run the ConfigSyncer in the background. It will wait for // Start the ConfigSyncer in the background. It will wait for
// initialization to complete, so that when this function returns, the // initialization to complete, so that when this function returns, the
// in-memory configuration has already been fully synchronized. // in-memory configuration has already been fully synchronized.
func (w *ConfigSyncer) Run() { func (w *ConfigSyncer) Start() {
// Run until the first successful Get(). // Run until the first successful Get().
log.Printf("attempting to retrieve initial config...") log.Printf("attempting to retrieve initial config...")
for { for {
...@@ -280,7 +280,7 @@ func (rc *RadioNode) Run() { ...@@ -280,7 +280,7 @@ func (rc *RadioNode) Run() {
// Bootstrap the config watcher. This ensures that we have a // Bootstrap the config watcher. This ensures that we have a
// full configuration (thanks to the Get() call) before we // full configuration (thanks to the Get() call) before we
// start managing the icecast server. // start managing the icecast server.
rc.watcher.Run() rc.watcher.Start()
// Start the presence heartbeat. // Start the presence heartbeat.
go rc.presence() go rc.presence()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment