diff --git a/node/node.go b/node/node.go index e2d11b43feb187f153ea36485e58852727cfb2d7..f44d1a6bef347013d7c795c2cebfe4e08c46625b 100644 --- a/node/node.go +++ b/node/node.go @@ -98,7 +98,7 @@ type configWatcher struct { upch chan bool } -func newConfigSyncer(client autoradio.EtcdClient, config *clusterConfig, upch chan bool) *configWatcher { +func newConfigWatcher(client autoradio.EtcdClient, config *clusterConfig, upch chan bool) *configWatcher { return &configWatcher{ client: client, config: config, @@ -286,7 +286,7 @@ func NewRadioNode(name string, ips []net.IP, netDev string, bwLimit float64, cli string(minfodata), uint64(*masterElectionTtl), mech), - watcher: newConfigSyncer(client, config, upch), + watcher: newConfigWatcher(client, config, upch), icecast: NewIcecastController(name), reloadDelay: 1000 * time.Millisecond, heartbeat: uint64(*nodeHeartbeat),