Skip to content

Commit

Permalink
remove redundant @assigned_store_server_uri
Browse files Browse the repository at this point in the history
  • Loading branch information
ArturT committed May 15, 2024
1 parent b819328 commit d200ad9
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/knapsack_pro/store/server.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,13 +87,10 @@ def self.store_server_uri

# must be set in the main/parent process to make the env var available to the child process
def self.assign_available_store_server_uri
@assigned_store_server_uri ||=
begin
find_available_drb_port_for_dummy_service
set_store_server_uri(DRb.uri)
stop_dummy_service
true
end
return if ENV['KNAPSACK_PRO_STORE_SERVER_URI']
find_available_drb_port_for_dummy_service
set_store_server_uri(DRb.uri)
stop_dummy_service
end

def self.find_available_drb_port_for_dummy_service
Expand Down

0 comments on commit d200ad9

Please sign in to comment.