Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

getw and ChildrenW same path at the same time #38

Closed
greyreo opened this issue Aug 3, 2020 · 1 comment · Fixed by #66
Closed

getw and ChildrenW same path at the same time #38

greyreo opened this issue Aug 3, 2020 · 1 comment · Fixed by #66
Labels
bug Something isn't working

Comments

@greyreo
Copy link

greyreo commented Aug 3, 2020

switch res.Type {
case EventNodeCreated:
wTypes = append(wTypes, watchTypeExist)
case EventNodeDeleted, EventNodeDataChanged:
wTypes = append(wTypes, watchTypeExist, watchTypeData, watchTypeChild)
case EventNodeChildrenChanged:
wTypes = append(wTypes, watchTypeChild)
}


switch res.Type {
case EventNodeCreated:
wTypes = append(wTypes, watchTypeExist)
case EventNodeDeleted:
wTypes = append(wTypes, watchTypeExist, watchTypeData, watchTypeChild)
case EventNodeDataChanged:
wTypes = append(wTypes, watchTypeExist, watchTypeData)
case EventNodeChildrenChanged:
wTypes = append(wTypes, watchTypeChild)
}

@greyreo
Copy link
Author

greyreo commented Aug 3, 2020

getw and ChildrenW same path at the same time,when node data change, ch of childrenW will return event,but children is not change! 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants