Skip to content

Commit

Permalink
Merge pull request kelseyhightower#720 from vadimgu/master
Browse files Browse the repository at this point in the history
Fix panic on file backend change
  • Loading branch information
okushchenko authored Jun 19, 2018
2 parents 8df7906 + 387686c commit 34a6ce8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion backends/file/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -107,8 +107,8 @@ func nodeWalk(node interface{}, key string, vars map[string]string) error {

func (c *Client) watchChanges(watcher *fsnotify.Watcher, stopChan chan bool) ResultError {
outputChannel := make(chan ResultError)
defer close(outputChannel)
go func() error {
defer close(outputChannel)
for {
select {
case event := <-watcher.Events:
Expand Down

0 comments on commit 34a6ce8

Please sign in to comment.