lib/falcon/hosts.rb in falcon-0.32.1 vs lib/falcon/hosts.rb in falcon-0.33.0

- old
+ new

@@ -36,17 +36,17 @@ def initialize(configuration) @named = {} @server_context = nil @server_endpoint = nil - configuration.each do |environment| + configuration.each(:authority) do |environment| add(Host.new(environment)) end end def each(&block) - @named.each(&block) + @named.each_value(&block) end def endpoint @server_endpoint ||= Async::HTTP::Endpoint.parse( 'https://[::]', @@ -98,13 +98,9 @@ def redirection(secure_endpoint) Redirection.new(Falcon::BadRequest, @named, secure_endpoint) end def run(container = Async::Container.new, **options) - @named.each do |name, host| - host.spawn(container) - end - secure_endpoint = Async::HTTP::Endpoint.parse(options[:bind_secure], ssl_context: self.ssl_context) insecure_endpoint = Async::HTTP::Endpoint.parse(options[:bind_insecure]) secure_endpoint_bound = insecure_endpoint_bound = nil