-
Notifications
You must be signed in to change notification settings - Fork 71
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add new configuration "sync-interval" which controls the HTTP p…
…olling interval (#404) …, in minutes, bet. each HTTP_sync calls EDIT by @toddbaert : I have modified this PR. I've done a couple things differently than @OsamaNabih : - interval is in seconds (I think it's likely some people will want sub-minute behavior, and the existing behavior was seconds - using `sources` for this, as @james-milligan suggested: - for example: `./bin/flagd start --sources='[{"uri":"https://raw.githubusercontent.com/open-feature/playground/main/config/flagd/flags.json","provider":"http","interval":1}]' --debug` will poll every 1s - defaults to 5s to maintain current behavior - added tests --------- Signed-off-by: Todd Baert <[email protected]> Co-authored-by: Todd Baert <[email protected]>
- Loading branch information
1 parent
f34de59
commit ace62c7
Showing
4 changed files
with
48 additions
and
26 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters