lib/google/cloud/logging/async_writer.rb in google-cloud-logging-1.6.5 vs lib/google/cloud/logging/async_writer.rb in google-cloud-logging-1.6.6

- old
+ new

@@ -149,12 +149,11 @@ publish_batch! @batch = Batch.new self @batch.add entry end - @thread_pool ||= \ - Concurrent::CachedThreadPool.new max_threads: @threads, - max_queue: @max_queue + @thread_pool ||= Concurrent::ThreadPoolExecutor.new \ + max_threads: @threads, max_queue: @max_queue @thread ||= Thread.new { run_background } publish_batch! if @batch.ready? @cond.broadcast