lib/griffin/server.rb in griffin-0.2.3 vs lib/griffin/server.rb in griffin-0.2.4

- old
+ new

@@ -39,13 +39,14 @@ # @param min_pool_size [Integer] Worker thread mininum size # @param max_pool_size [Integer] Worker thread maximun size # @param min_connection_size [Integer] Maximun connection of TCP # @param max_connection_size [Integer] Minimum connection of TCP # @param interceptors [Array<GrpcKit::GRPC::ServerInterceptor>] list of interceptors - def initialize(min_pool_size:, max_pool_size:, min_connection_size:, max_connection_size:, interceptors: [], **opts) + # @param settings [Array<DS9::Settings,Integer>] list of HTTP2-Settings headers + def initialize(min_pool_size:, max_pool_size:, min_connection_size:, max_connection_size:, interceptors: [], settings: [], **opts) @min_connection_size = min_connection_size @max_connection_size = max_connection_size - @server = GrpcKit::Server.new(interceptors: interceptors, min_pool_size: min_pool_size, max_pool_size: max_pool_size) + @server = GrpcKit::Server.new(interceptors: interceptors, min_pool_size: min_pool_size, max_pool_size: max_pool_size, settings: settings) @opts = opts @status = :run @worker_id = 0 end