Add rev by one when start watch event (#6152)

Signed-off-by: sunby <bingyi.sun@zilliz.com>
pull/6190/head
sunby 2021-06-29 14:52:14 +08:00 committed by GitHub
parent 1c1ffc8b32
commit dd3ba9b2b3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -211,7 +211,7 @@ func (s *Server) initServiceDiscovery() error {
return err
}
s.eventCh = s.session.WatchServices(typeutil.DataNodeRole, rev)
s.eventCh = s.session.WatchServices(typeutil.DataNodeRole, rev+1)
return nil
}