diff --git a/rack-async-http-falcon-graphql-batch/Gemfile.lock b/rack-async-http-falcon-graphql-batch/Gemfile.lock index 85569ad..de5c022 100644 --- a/rack-async-http-falcon-graphql-batch/Gemfile.lock +++ b/rack-async-http-falcon-graphql-batch/Gemfile.lock @@ -8,15 +8,15 @@ GEM async-container (0.16.8) async (~> 1.0) async-io (~> 1.26) - async-http (0.54.1) + async-http (0.56.1) async (~> 1.25) async-io (~> 1.28) async-pool (~> 0.2) - protocol-http (~> 0.21.0) - protocol-http1 (~> 0.13.0) + protocol-http (~> 0.22.0) + protocol-http1 (~> 0.14.0) protocol-http2 (~> 0.14.0) - async-http-cache (0.3.0) - async-http (~> 0.53) + async-http-cache (0.4.0) + async-http (~> 0.56) async-io (1.30.2) async (~> 1.14) async-pool (0.3.5) @@ -24,11 +24,11 @@ GEM build-environment (1.13.0) console (1.11.1) fiber-local - falcon (0.37.3) + falcon (0.38.0) async (~> 1.13) async-container (~> 0.16.0) - async-http (~> 0.54.0) - async-http-cache (~> 0.3.0) + async-http (~> 0.56.0) + async-http-cache (~> 0.4.0) async-io (~> 1.22) build-environment (~> 1.13) bundler @@ -49,9 +49,9 @@ GEM samovar (~> 2.1) promise.rb (0.7.4) protocol-hpack (1.4.2) - protocol-http (0.21.0) - protocol-http1 (0.13.2) - protocol-http (~> 0.19) + protocol-http (0.22.0) + protocol-http1 (0.14.0) + protocol-http (~> 0.22) protocol-http2 (0.14.2) protocol-hpack (~> 1.4) protocol-http (~> 0.18) diff --git a/rack-async-http-falcon-graphql-batch/async_loader.rb b/rack-async-http-falcon-graphql-batch/async_loader.rb index 9803764..a8fd3a1 100644 --- a/rack-async-http-falcon-graphql-batch/async_loader.rb +++ b/rack-async-http-falcon-graphql-batch/async_loader.rb @@ -1,11 +1,6 @@ require "async" require "async/barrier" -require "async/http/internet" -require "thread/local" - -class Async::HTTP::Internet - extend Thread::Local -end +require "async/http/internet/instance" class AsyncLoader < GraphQL::Batch::Loader def perform(urls) diff --git a/rack-async-http-falcon-graphql-dataloader/Gemfile.lock b/rack-async-http-falcon-graphql-dataloader/Gemfile.lock index 1e500ce..fcdb2a6 100644 --- a/rack-async-http-falcon-graphql-dataloader/Gemfile.lock +++ b/rack-async-http-falcon-graphql-dataloader/Gemfile.lock @@ -8,15 +8,15 @@ GEM async-container (0.16.8) async (~> 1.0) async-io (~> 1.26) - async-http (0.54.1) + async-http (0.56.1) async (~> 1.25) async-io (~> 1.28) async-pool (~> 0.2) - protocol-http (~> 0.21.0) - protocol-http1 (~> 0.13.0) + protocol-http (~> 0.22.0) + protocol-http1 (~> 0.14.0) protocol-http2 (~> 0.14.0) - async-http-cache (0.3.0) - async-http (~> 0.53) + async-http-cache (0.4.0) + async-http (~> 0.56) async-io (1.30.2) async (~> 1.14) async-pool (0.3.5) @@ -24,11 +24,11 @@ GEM build-environment (1.13.0) console (1.11.1) fiber-local - falcon (0.37.3) + falcon (0.38.0) async (~> 1.13) async-container (~> 0.16.0) - async-http (~> 0.54.0) - async-http-cache (~> 0.3.0) + async-http (~> 0.56.0) + async-http-cache (~> 0.4.0) async-io (~> 1.22) build-environment (~> 1.13) bundler @@ -45,9 +45,9 @@ GEM console (~> 1.8) samovar (~> 2.1) protocol-hpack (1.4.2) - protocol-http (0.21.0) - protocol-http1 (0.13.2) - protocol-http (~> 0.19) + protocol-http (0.22.0) + protocol-http1 (0.14.0) + protocol-http (~> 0.22) protocol-http2 (0.14.2) protocol-hpack (~> 1.4) protocol-http (~> 0.18) diff --git a/rack-async-http-falcon-graphql-dataloader/async_loader.rb b/rack-async-http-falcon-graphql-dataloader/async_loader.rb index d428282..df68cba 100644 --- a/rack-async-http-falcon-graphql-dataloader/async_loader.rb +++ b/rack-async-http-falcon-graphql-dataloader/async_loader.rb @@ -1,12 +1,7 @@ require "async" require "async/barrier" -require "async/http/internet" +require "async/http/internet/instance" require "kernel/sync" -require "thread/local" - -class Async::HTTP::Internet - extend Thread::Local -end class AsyncLoader < GraphQL::Dataloader::Source def fetch(urls) diff --git a/rack-async-http-falcon-graphql-lazy-resolve/Gemfile.lock b/rack-async-http-falcon-graphql-lazy-resolve/Gemfile.lock index 8dc2ee7..e812718 100644 --- a/rack-async-http-falcon-graphql-lazy-resolve/Gemfile.lock +++ b/rack-async-http-falcon-graphql-lazy-resolve/Gemfile.lock @@ -8,15 +8,15 @@ GEM async-container (0.16.8) async (~> 1.0) async-io (~> 1.26) - async-http (0.54.1) + async-http (0.56.1) async (~> 1.25) async-io (~> 1.28) async-pool (~> 0.2) - protocol-http (~> 0.21.0) - protocol-http1 (~> 0.13.0) + protocol-http (~> 0.22.0) + protocol-http1 (~> 0.14.0) protocol-http2 (~> 0.14.0) - async-http-cache (0.3.0) - async-http (~> 0.53) + async-http-cache (0.4.0) + async-http (~> 0.56) async-io (1.30.2) async (~> 1.14) async-pool (0.3.5) @@ -24,11 +24,11 @@ GEM build-environment (1.13.0) console (1.11.1) fiber-local - falcon (0.37.3) + falcon (0.38.0) async (~> 1.13) async-container (~> 0.16.0) - async-http (~> 0.54.0) - async-http-cache (~> 0.3.0) + async-http (~> 0.56.0) + async-http-cache (~> 0.4.0) async-io (~> 1.22) build-environment (~> 1.13) bundler @@ -45,9 +45,9 @@ GEM console (~> 1.8) samovar (~> 2.1) protocol-hpack (1.4.2) - protocol-http (0.21.0) - protocol-http1 (0.13.2) - protocol-http (~> 0.19) + protocol-http (0.22.0) + protocol-http1 (0.14.0) + protocol-http (~> 0.22) protocol-http2 (0.14.2) protocol-hpack (~> 1.4) protocol-http (~> 0.18) diff --git a/rack-async-http-falcon-graphql-lazy-resolve/query.rb b/rack-async-http-falcon-graphql-lazy-resolve/query.rb index 2503d34..0d4f49e 100644 --- a/rack-async-http-falcon-graphql-lazy-resolve/query.rb +++ b/rack-async-http-falcon-graphql-lazy-resolve/query.rb @@ -1,5 +1,4 @@ -require "async/http/internet" -require "thread/local" +require "async/http/internet/instance" class Query < GraphQL::Schema::Object field :one, String, null: false @@ -18,16 +17,8 @@ def three Async { delay_2_data["url"] } end - module Internet - extend Thread::Local - - def self.local - Async::HTTP::Internet.new - end - end - def internet - Internet.instance + Async::HTTP::Internet.instance end def delay_1_semaphore diff --git a/rack-async-http-falcon-graphql/Gemfile.lock b/rack-async-http-falcon-graphql/Gemfile.lock index b3fde0f..ade7e3c 100644 --- a/rack-async-http-falcon-graphql/Gemfile.lock +++ b/rack-async-http-falcon-graphql/Gemfile.lock @@ -8,15 +8,15 @@ GEM async-container (0.16.8) async (~> 1.0) async-io (~> 1.26) - async-http (0.54.1) + async-http (0.56.1) async (~> 1.25) async-io (~> 1.28) async-pool (~> 0.2) - protocol-http (~> 0.21.0) - protocol-http1 (~> 0.13.0) + protocol-http (~> 0.22.0) + protocol-http1 (~> 0.14.0) protocol-http2 (~> 0.14.0) - async-http-cache (0.3.0) - async-http (~> 0.53) + async-http-cache (0.4.0) + async-http (~> 0.56) async-io (1.30.2) async (~> 1.14) async-pool (0.3.5) @@ -24,11 +24,11 @@ GEM build-environment (1.13.0) console (1.11.1) fiber-local - falcon (0.37.3) + falcon (0.38.0) async (~> 1.13) async-container (~> 0.16.0) - async-http (~> 0.54.0) - async-http-cache (~> 0.3.0) + async-http (~> 0.56.0) + async-http-cache (~> 0.4.0) async-io (~> 1.22) build-environment (~> 1.13) bundler @@ -49,9 +49,9 @@ GEM samovar (~> 2.1) promise.rb (0.7.4) protocol-hpack (1.4.2) - protocol-http (0.21.0) - protocol-http1 (0.13.2) - protocol-http (~> 0.19) + protocol-http (0.22.0) + protocol-http1 (0.14.0) + protocol-http (~> 0.22) protocol-http2 (0.14.2) protocol-hpack (~> 1.4) protocol-http (~> 0.18) diff --git a/rack-async-http-falcon-graphql/async_loader.rb b/rack-async-http-falcon-graphql/async_loader.rb index 9803764..a8fd3a1 100644 --- a/rack-async-http-falcon-graphql/async_loader.rb +++ b/rack-async-http-falcon-graphql/async_loader.rb @@ -1,11 +1,6 @@ require "async" require "async/barrier" -require "async/http/internet" -require "thread/local" - -class Async::HTTP::Internet - extend Thread::Local -end +require "async/http/internet/instance" class AsyncLoader < GraphQL::Batch::Loader def perform(urls) diff --git a/rack-async-http-puma-graphql/Gemfile.lock b/rack-async-http-puma-graphql/Gemfile.lock index 79084a7..69cab9a 100644 --- a/rack-async-http-puma-graphql/Gemfile.lock +++ b/rack-async-http-puma-graphql/Gemfile.lock @@ -5,12 +5,12 @@ GEM console (~> 1.10) nio4r (~> 2.3) timers (~> 4.1) - async-http (0.55.0) + async-http (0.56.1) async (~> 1.25) async-io (~> 1.28) async-pool (~> 0.2) - protocol-http (~> 0.21.0) - protocol-http1 (~> 0.13.0) + protocol-http (~> 0.22.0) + protocol-http1 (~> 0.14.0) protocol-http2 (~> 0.14.0) async-io (1.30.2) async (~> 1.14) @@ -26,9 +26,9 @@ GEM nio4r (2.5.7) promise.rb (0.7.4) protocol-hpack (1.4.2) - protocol-http (0.21.0) - protocol-http1 (0.13.2) - protocol-http (~> 0.19) + protocol-http (0.22.0) + protocol-http1 (0.14.0) + protocol-http (~> 0.22) protocol-http2 (0.14.2) protocol-hpack (~> 1.4) protocol-http (~> 0.18) diff --git a/rack-async-http-puma-graphql/async_loader.rb b/rack-async-http-puma-graphql/async_loader.rb index 601a086..b477801 100644 --- a/rack-async-http-puma-graphql/async_loader.rb +++ b/rack-async-http-puma-graphql/async_loader.rb @@ -1,13 +1,8 @@ require "async" require "async/barrier" -require "async/http/internet" -require "thread/local" +require "async/http/internet/instance" require "kernel/sync" -class Async::HTTP::Internet - extend Thread::Local -end - class AsyncLoader < GraphQL::Batch::Loader def perform(urls) Sync do diff --git a/rails-async-http-falcon-graphql-batch/Gemfile.lock b/rails-async-http-falcon-graphql-batch/Gemfile.lock index 9fc881f..a51a488 100644 --- a/rails-async-http-falcon-graphql-batch/Gemfile.lock +++ b/rails-async-http-falcon-graphql-batch/Gemfile.lock @@ -67,15 +67,15 @@ GEM async-container (0.16.8) async (~> 1.0) async-io (~> 1.26) - async-http (0.54.1) + async-http (0.56.1) async (~> 1.25) async-io (~> 1.28) async-pool (~> 0.2) - protocol-http (~> 0.21.0) - protocol-http1 (~> 0.13.0) + protocol-http (~> 0.22.0) + protocol-http1 (~> 0.14.0) protocol-http2 (~> 0.14.0) - async-http-cache (0.3.0) - async-http (~> 0.53) + async-http-cache (0.4.0) + async-http (~> 0.56) async-io (1.30.2) async (~> 1.14) async-pool (0.3.5) @@ -87,11 +87,11 @@ GEM fiber-local crass (1.0.6) erubi (1.10.0) - falcon (0.37.3) + falcon (0.38.0) async (~> 1.13) async-container (~> 0.16.0) - async-http (~> 0.54.0) - async-http-cache (~> 0.3.0) + async-http (~> 0.56.0) + async-http-cache (~> 0.4.0) async-io (~> 1.22) build-environment (~> 1.13) bundler @@ -129,9 +129,9 @@ GEM samovar (~> 2.1) promise.rb (0.7.4) protocol-hpack (1.4.2) - protocol-http (0.21.0) - protocol-http1 (0.13.2) - protocol-http (~> 0.19) + protocol-http (0.22.0) + protocol-http1 (0.14.0) + protocol-http (~> 0.22) protocol-http2 (0.14.2) protocol-hpack (~> 1.4) protocol-http (~> 0.18) diff --git a/rails-async-http-falcon-graphql-batch/app/models/async_loader.rb b/rails-async-http-falcon-graphql-batch/app/models/async_loader.rb index 57ce9c3..85000cf 100644 --- a/rails-async-http-falcon-graphql-batch/app/models/async_loader.rb +++ b/rails-async-http-falcon-graphql-batch/app/models/async_loader.rb @@ -1,11 +1,6 @@ require "async" require "async/barrier" -require "async/http/internet" -require "thread/local" - -class Async::HTTP::Internet - extend Thread::Local -end +require "async/http/internet/instance" class AsyncLoader < GraphQL::Batch::Loader def perform(urls)