Skip to content

Throttling Switchers does not work when using strategy inputs #371

@petruki

Description

@petruki

Describe the bug
This is a legacy bug that prevent throttle to proper cache results when Switchers have input strategy.

To Reproduce
Define a Switcher using the following:

final Switcher feature = getSwitcher(MY_SWITCHER)
	.checkValue("user_1")
	.throttle(1000);

This settings should make every call from the SDK to verify cached results and run the API call in the background.
However, when using strategies check..., the cache fails to identify the records and proceed with remote call.

Expected behavior
Throttle API calls handling the cache when strategy is defined

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions