Skip to content

Commit

Permalink
Concurrent array
Browse files Browse the repository at this point in the history
  • Loading branch information
keelerm84 committed Mar 21, 2024
1 parent 2459500 commit 8028633
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/ldclient-rb/ldclient.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
require "ldclient-rb/impl/flag_tracker"
require "ldclient-rb/impl/store_client_wrapper"
require "ldclient-rb/impl/migrations/tracker"
require "concurrent"
require "concurrent/atomics"
require "digest/sha1"
require "forwardable"
Expand Down Expand Up @@ -54,7 +55,7 @@ def initialize(sdk_key, config = Config.default, wait_for_sec = 5)
end

@sdk_key = sdk_key
@hooks = config.hooks
@hooks = Concurrent::Array.new(config.hooks)

@shared_executor = Concurrent::SingleThreadExecutor.new

Expand Down

0 comments on commit 8028633

Please sign in to comment.