Commit 113faab
committed
rabbit_feature_flags: Use non-blocking call in
[Why]
The previous implementation was using the blocking `is_enabled/1` API.
This meant that if a feature flag was being enabled and the enable
callback took time, the CLI's `list_feature_flag` command or any use of
the management UI would block until the feature flag was enabled.
[How]
`get_state/1` now uses the non-blocking API. However it returns a now
possible value: `state_changing`.get_state/1
1 parent e33d189 commit 113faab
File tree
2 files changed
+18
-8
lines changed- deps/rabbit/src
2 files changed
+18
-8
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
719 | 719 | | |
720 | 720 | | |
721 | 721 | | |
722 | | - | |
| 722 | + | |
| 723 | + | |
| 724 | + | |
| 725 | + | |
723 | 726 | | |
724 | 727 | | |
725 | 728 | | |
726 | 729 | | |
727 | 730 | | |
728 | 731 | | |
| 732 | + | |
729 | 733 | | |
730 | 734 | | |
731 | 735 | | |
732 | 736 | | |
733 | 737 | | |
734 | 738 | | |
735 | 739 | | |
736 | | - | |
| 740 | + | |
737 | 741 | | |
738 | 742 | | |
739 | | - | |
| 743 | + | |
740 | 744 | | |
741 | | - | |
742 | | - | |
743 | | - | |
744 | | - | |
745 | | - | |
| 745 | + | |
| 746 | + | |
| 747 | + | |
| 748 | + | |
| 749 | + | |
| 750 | + | |
| 751 | + | |
| 752 | + | |
| 753 | + | |
746 | 754 | | |
747 | 755 | | |
748 | 756 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
174 | 174 | | |
175 | 175 | | |
176 | 176 | | |
| 177 | + | |
| 178 | + | |
177 | 179 | | |
178 | 180 | | |
179 | 181 | | |
| |||
0 commit comments