Fix deprecation warning
This commit is contained in:
parent
dc4b116f8b
commit
ee783bcee9
1 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue