A bug reported by our customer #527
Code
_nextCollectionRefreshTime will not be set if key value refresh is not configured (kvCollectionRefreshInterval will be null). This line will always set the current time as the next refresh due which will cause refresh is always due.
The result is that if user only enabled the feature flag refresh and set a refresh interval for feature flag, each time calling TryRefreshAsync, the refresh operation will always send requests. But the refresh will happen every time.