Jelajahi Sumber

fix update also return newValue

Xiang Li 12 tahun lalu
induk
melakukan
7b6e305d40
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  1. 2 0
      store/store.go

+ 2 - 0
store/store.go

@@ -306,6 +306,8 @@ func (s *store) Update(nodePath string, newValue string, expireTime time.Time, i
 	// update ttl
 	n.UpdateTTL(expireTime)
 
+	e.Value = newValue
+
 	e.Expiration, e.TTL = n.ExpirationAndTTL()
 
 	s.WatcherHub.notify(e)