Skip to content

Commit 7457304

Browse files
committed
topom: start sentinel watcher automatically, fix #1291
1 parent f0d81ea commit 7457304

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

pkg/topom/topom.go

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -195,6 +195,11 @@ func (s *Topom) Start(routines bool) error {
195195
if !routines {
196196
return nil
197197
}
198+
ctx, err := s.newContext()
199+
if err != nil {
200+
return err
201+
}
202+
s.rewatchSentinels(ctx.sentinel.Servers)
198203

199204
go func() {
200205
for !s.IsClosed() {

0 commit comments

Comments
 (0)