Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

Commit

Permalink
Merge 9c1b6fe into 2cc03de
Browse files Browse the repository at this point in the history
  • Loading branch information
leonshaw committed Mar 18, 2020
2 parents 2cc03de + 9c1b6fe commit b99a4e8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion zk/conn.go
Expand Up @@ -884,8 +884,10 @@ func (c *Conn) recvLoop(conn net.Conn) error {
switch res.Type {
case EventNodeCreated:
wTypes = append(wTypes, watchTypeExist)
case EventNodeDeleted, EventNodeDataChanged:
case EventNodeDeleted:
wTypes = append(wTypes, watchTypeExist, watchTypeData, watchTypeChild)
case EventNodeDataChanged:
wTypes = append(wTypes, watchTypeData)
case EventNodeChildrenChanged:
wTypes = append(wTypes, watchTypeChild)
}
Expand Down

0 comments on commit b99a4e8

Please sign in to comment.