Skip to content

Commit 91a5025

Browse files
committed
fix name error
1 parent 0f1de66 commit 91a5025

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

lib/optimizely/cmab/cmab_client.rb

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@
1515
# See the License for the specific language governing permissions and
1616
# limitations under the License.
1717
#
18+
require 'optimizely/helpers/http_utils'
19+
require 'optimizely/helpers/constants'
20+
1821
module Optimizely
1922
# Default constants for CMAB requests
2023
DEFAULT_MAX_RETRIES = 3
@@ -46,7 +49,7 @@ def initialize(http_client = nil, retry_config = nil, logger = nil)
4649
# http_client: HTTP client for making requests.
4750
# retry_config: Configuration for retry settings.
4851
# logger: Logger for logging errors and info.
49-
@http_client = http_client || DefaultHttpClient.new
52+
@http_client = http_client || Optimizely::Helpers::HttpUtils
5053
@retry_config = retry_config || CmabRetryConfig.new
5154
@logger = logger || NoOpLogger.new
5255
end

0 commit comments

Comments
 (0)