瀏覽代碼

fix update also return newValue

Xiang Li 12 年之前
父節點
當前提交
7b6e305d40
共有 1 個文件被更改,包括 2 次插入0 次删除
  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)