lib/featureflow/polling_client.rb in featureflow-0.3.7 vs lib/featureflow/polling_client.rb in featureflow-0.4.0

- old
+ new

@@ -2,11 +2,11 @@ require 'json' module Featureflow class PollingClient DEFAULT_OPTIONS = { - delay: 30, + poll_interval: 30, timeout: 30 }.freeze def initialize(url, api_key, options = {}, &set_features) @etag = '' @url = url @@ -15,10 +15,10 @@ @set_features = set_features load_features Thread.new do loop do - sleep @options[:delay] + sleep @options[:poll_interval] load_features end end end \ No newline at end of file