Support string and symbol keys in metadata
This commit is contained in:
1 parent
9382b216ef
commit
8dc675a366
1 file changed
+3
-1
@@ -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
|
||||
|
||||
Reference in new issue
Block a user