Skip to content

Commit 9043812

Browse files
committed
Stop the watcher on-exit
1 parent dc38a42 commit 9043812

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

pkg/consuldp/consul_dataplane.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,7 @@ func (cdp *ConsulDataplane) Run(ctx context.Context) error {
121121
return err
122122
}
123123
go watcher.Run()
124+
defer watcher.Stop()
124125

125126
state, err := watcher.State()
126127
if err != nil {

0 commit comments

Comments
 (0)