Skip to content

Commit 365b487

Browse files
committed
Fix error
1 parent b2362cd commit 365b487

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lib/optimizely/cmab/cmab_client.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ module Optimizely
2121
DEFAULT_INITIAL_BACKOFF = 0.1 # in seconds (100 ms)
2222
DEFAULT_MAX_BACKOFF = 10 # in seconds
2323
DEFAULT_BACKOFF_MULTIPLIER = 2.0
24-
MAX_WAIT_TIME = 10.0
24+
MAX_WAIT_TIME = 10
2525

2626
class CmabRetryConfig
2727
# Configuration for retrying CMAB requests.
@@ -62,7 +62,7 @@ def fetch_decision(rule_id, user_id, attributes, cmab_uuid, timeout: MAX_WAIT_TI
6262
# Returns:
6363
# The variation ID.
6464
url = "https://prediction.cmab.optimizely.com/predict/#{rule_id}"
65-
cmab_attributes = attributes.map { |key, value| {id: key.to_s, value: value, type: 'custom_attribute'} }
65+
cmab_attributes = attributes.map { |key, value| {'id' => key.to_s, 'value' => value, 'type' => 'custom_attribute'} }
6666

6767
request_body = {
6868
instances: [{

0 commit comments

Comments
 (0)