Open BarkunMaxim opened 1 year ago
When we listen to node using childrenW method We have two cases:
childrenW
node Parent with children's nodes [child1, child2, child3]. if I try to delete the node Parent, I get event.Type = EventNodeChildrenChanged.
Parent
[child1, child2, child3]
event.Type = EventNodeChildrenChanged
node Parent without children's nodes. if I try to delete the node Parent, I get event.Type = EventNodeDeleted.
event.Type = EventNodeDeleted
It looks like a bug. In the first case I expected to get event.Type = EventNodeDeleted
Example of getting events:
go func() { for { select { case <-ctx.Done(): return case ev := <-events: fmt.Println(ev.Type) _, _, events, err = client.conn.ChildrenW(path) } } }()
When we listen to node using
childrenW
method We have two cases:node
Parent
with children's nodes[child1, child2, child3]
. if I try to delete the nodeParent
, I getevent.Type = EventNodeChildrenChanged
.node
Parent
without children's nodes. if I try to delete the nodeParent
, I getevent.Type = EventNodeDeleted
.It looks like a bug. In the first case I expected to get
event.Type = EventNodeDeleted
Example of getting events: