We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1ccf098 commit 67b03caCopy full SHA for 67b03ca
lib/flipper/adapters/poll.rb
@@ -23,7 +23,14 @@ def initialize(poller, adapter)
23
# Yes, this will block the main thread, but that's better than thinking
24
# nothing is enabled.
25
if adapter.features.empty?
26
- @poller.sync
+ begin
27
+ @poller.sync
28
+ rescue => error
29
+ # TODO: Warn here that it's possible that no data has been synced
30
+ # and flags are being evaluated without flag data being present
31
+ # until a sync completes. We rescue to avoid flipper being down
32
+ # causing your processes to crash.
33
+ end
34
end
35
36
@poller.start
0 commit comments