File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ import (
2020// read the configuration file(s) from the repository, gather all the targets
2121// and set up the target watcher. This should always happen in sync with the
2222// rest of the service to prevent a reconfiguration during an event handler.
23- func (w * Watcher ) reconfigure (hostname string ) (err error ) {
23+ func (w * Watcher ) reconfigure () (err error ) {
2424 zap .L ().Debug ("reconfiguring" )
2525
2626 err = w .watchConfig ()
@@ -35,7 +35,7 @@ func (w *Watcher) reconfigure(hostname string) (err error) {
3535 }
3636 state := getNewState (
3737 filepath .Join (w .directory , path ),
38- hostname ,
38+ w . hostname ,
3939 w .state ,
4040 )
4141
Original file line number Diff line number Diff line change @@ -52,14 +52,14 @@ func New(
5252}
5353
5454func (w * Watcher ) Start () error {
55- if err := w .reconfigure (w . hostname ); err != nil {
55+ if err := w .reconfigure (); err != nil {
5656 return err
5757 }
5858
5959 f := func () (err error ) {
6060 select {
6161 case <- w .configWatcher .Events :
62- err = w .reconfigure (w . hostname )
62+ err = w .reconfigure ()
6363
6464 case event := <- w .targetsWatcher .Events :
6565 if e := w .handle (event ); e != nil {
You can’t perform that action at this time.
0 commit comments