Skip to content

Commit

Permalink
Remove duplication.
Browse files Browse the repository at this point in the history
  • Loading branch information
TreyE committed Jul 31, 2024
1 parent 32104c4 commit 46fb999
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions lib/event_source.rb
Original file line number Diff line number Diff line change
Expand Up @@ -70,20 +70,20 @@ def configure
def initialize!(immediate = false)
load_protocols
if immediate
create_connections
load_async_api_resources
load_components
do_boot
else
@registered_for_boot = true
end
end

def boot!
if @registered_for_boot
create_connections
load_async_api_resources
load_components
end
do_boot if @registered_for_boot
end

def do_boot
create_connections
load_async_api_resources
load_components
end

def config
Expand Down

0 comments on commit 46fb999

Please sign in to comment.