Skip to content

Commit c70cb5b

Browse files
committed
Update sync interval for webhooks to 1 hour in configuration
1 parent a8c27c1 commit c70cb5b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/flipper/cloud/configuration.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -203,10 +203,10 @@ def setup_http(options)
203203
def setup_sync(options)
204204
set_option :sync_secret, options
205205

206-
# 5 minutes for webhook, 10 seconds for poll. If using webhooks we don't
206+
# 1 hour for webhook, 10 seconds for poll. If using webhooks we don't
207207
# need to sync as often but we should still sync occasionally to avoid
208208
# any chance of stale data.
209-
default_interval = sync_method == :webhook ? 600 : 10
209+
default_interval = sync_method == :webhook ? 3600 : 10
210210
set_option :sync_interval, options, default: default_interval, typecast: :float, minimum: 10
211211
end
212212

0 commit comments

Comments
 (0)