Explorar o código

fix update also return newValue

Xiang Li %!s(int64=13) %!d(string=hai) anos
pai
achega
7b6e305d40
Modificáronse 1 ficheiros con 2 adicións e 0 borrados
  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)