diff options
author | Azul <azul@riseup.net> | 2016-09-30 12:47:32 +0200 |
---|---|---|
committer | Azul <azul@riseup.net> | 2016-09-30 12:47:32 +0200 |
commit | ab31d9ca7dca20c873a7240482d1736d0f6b6dae (patch) | |
tree | 87ee0becc73d6a92b94d3b35e0c59ad0906a7865 /lib | |
parent | c3499f703245b6493ddc94d27542a4b49a9bfc81 (diff) |
change default adapter to CelluloidHttp
Turns out without this nickserver will not respond to multiple concurrent requests.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/nickserver/source.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/nickserver/source.rb b/lib/nickserver/source.rb index ca2c34c..dc0669a 100644 --- a/lib/nickserver/source.rb +++ b/lib/nickserver/source.rb @@ -1,9 +1,11 @@ -require 'nickserver/adapters/http' +require 'nickserver/adapters/celluloid_http' module Nickserver class Source - def initialize(adapter = Nickserver::Adapters::Http.new) + DEFAULT_ADAPTER_CLASS = Nickserver::Adapters::CelluloidHttp + + def initialize(adapter = DEFAULT_ADAPTER_CLASS.new) @adapter = adapter end |