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

functions called Run should not return

parent 5bd25acc
No related branches found
No related tags found
No related merge requests found
......@@ -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
// in-memory configuration has already been fully synchronized.
func (w *ConfigSyncer) Run() {
func (w *ConfigSyncer) Start() {
// Run until the first successful Get().
log.Printf("attempting to retrieve initial config...")
for {
......@@ -280,7 +280,7 @@ func (rc *RadioNode) Run() {
// Bootstrap the config watcher. This ensures that we have a
// full configuration (thanks to the Get() call) before we
// start managing the icecast server.
rc.watcher.Run()
rc.watcher.Start()
// Start the presence heartbeat.
go rc.presence()
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment