go-feature-flag
go-feature-flag copied to clipboard
feat: Add initial delay for polling feature configuration
Description
- Added
pollingDelayInMillis
in initialize options, to declare delay for the first request of feature flags - Added tests to cover this case
This should solve the issue of getting feature flags before the first polling even happened (Default delay is 5 mins, it is okay for polling but not okay for waiting for initial data)
Checklist
- [x] I have tested this code
- [x] I have added unit test to cover this code
- [x] I have updated the documentation (
README.md
and/website/docs
) - [x] I have followed the contributing guide