Skip to content

Commit

Permalink
Use ModRevision in newer watchData usage
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Lord <[email protected]>
  • Loading branch information
mattlord committed May 6, 2024
1 parent d49f984 commit 4054eb7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion go/vt/topo/etcd2topo/watch.go
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,7 @@ func (s *Server) WatchRecursive(ctx context.Context, dirpath string) ([]*topo.Wa
Path: string(ev.Kv.Key),
WatchData: topo.WatchData{
Contents: ev.Kv.Value,
Version: EtcdVersion(ev.Kv.Version),
Version: EtcdVersion(ev.Kv.ModRevision),
},
}
case mvccpb.DELETE:
Expand Down

0 comments on commit 4054eb7

Please sign in to comment.