From ee783bcee9b632eacf834e154d6cf49c87ec121a Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Thu, 23 Apr 2020 20:45:01 +0100 Subject: [PATCH] Fix deprecation warning --- lib/potlatch.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lib/potlatch.rb b/lib/potlatch.rb index f481e4412..3e4ddfaf3 100644 --- a/lib/potlatch.rb +++ b/lib/potlatch.rb @@ -120,7 +120,7 @@ module Potlatch # The Dispatcher class handles decoding a series of RPC calls # from the request, dispatching them, and encoding the response class Dispatcher - def initialize(request, &_block) + def initialize(request, &block) # Get stream for request data @request = StringIO.new(request + 0.chr) @@ -135,7 +135,7 @@ module Potlatch end # Capture the dispatch routine - @dispatch = Proc.new + @dispatch = block end def each(&_block) -- 2.45.1