mirror of https://github.com/bumi/lnrpc
Support string and symbol keys in metadata
This commit is contained in:
parent
9382b216ef
commit
8dc675a366
|
@ -7,7 +7,9 @@ module Lnrpc
|
|||
end
|
||||
|
||||
def request_response(request:, call:, method:, metadata:)
|
||||
metadata['macaroon'] ||= @macaroon
|
||||
if !metadata.has_key?('macaroon') && !metadata.has_key?(:macaroon)
|
||||
metadata[:macaroon] = @macaroon
|
||||
end
|
||||
yield
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue