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

add: reload watch dir when add new folder #156

Merged
merged 5 commits into from
Dec 27, 2024
Merged

Conversation

xjellyx
Copy link
Contributor

@xjellyx xjellyx commented Sep 1, 2022

No description provided.

Copy link
Collaborator

@brendan-ward brendan-ward left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for working on this @olongfen , it addresses a shortcoming in the initial implementation of the file watch capability.

The big change needed here is to only trigger reload of the watcher on create or delete of a subdirectory, not any change that is other than an mbtiles file.

watch.go Outdated Show resolved Hide resolved
watch.go Outdated Show resolved Hide resolved
@coveralls
Copy link

Coverage Status

coverage: 5.035% (-3.0%) from 8.053%
when pulling 6fd6708 on xjellyx:main
into 04d08f1 on consbio:main.

@brendan-ward brendan-ward merged commit de9e21f into consbio:main Dec 27, 2024
16 checks passed
@brendan-ward
Copy link
Collaborator

Thanks @xjellyx for adding this; I made a few minor updates. Very sorry for the long delay in re-review.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants