Skip to content

Commit

Permalink
for specs, re-init connection factory for server restart
Browse files Browse the repository at this point in the history
  • Loading branch information
kickster97 committed Jan 23, 2025
1 parent 0e2291b commit 2da02b9
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/lavinmq/server.cr
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ module LavinMQ
@users = UserStore.new(@data_dir, @replicator)
@vhosts = VHostStore.new(@data_dir, @users, @replicator)
@parameters = ParameterStore(Parameter).new(@data_dir, "parameters.json", @replicator)
@amqp_connection_factory = LavinMQ::AMQP::ConnectionFactory.new(@users, @vhosts)
apply_parameter
@closed = false
Fiber.yield
Expand Down

0 comments on commit 2da02b9

Please sign in to comment.