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

Signed-off-by: sunby <bingyi.sun@zilliz.com>
This commit is contained in:
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

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
}