etcd2: remove unnecessary PrevValue in SetOption

This commit is contained in:
Hongchao Deng 2016-12-05 23:40:16 -08:00
parent 55f13b5729
commit 7a0176da57

View File

@ -525,7 +525,6 @@ func (h *etcdHelper) GuaranteedUpdate(
startTime := time.Now()
// Swap origBody with data, if origBody is the latest etcd data.
opts := etcd.SetOptions{
PrevValue: origBody,
PrevIndex: index,
TTL: time.Duration(ttl) * time.Second,
}