mirror of
https://github.com/bumi/lnrpc
synced 2026-02-14 07:27:48 +00:00
Support string and symbol keys in metadata
This commit is contained in:
@@ -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