Skip to content

use fsnotify instead of polling for autoreload #77

@cyberhck

Description

@cyberhck

Describe the feature

configor should reload config when the file changes and not poll it every once in a while.

Motivation

Currently, it does polling, if I do it too aggressively it calls my function too often, if not, then my credentials are rotated, but I won't know about it.

A much nicer API would be to use fsnotify instead. It has good support and it only calls if the file has changed.

Related Issues

Metadata

Metadata

Assignees

Labels

No labels
No labels

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions