1
0
mirror of https://github.com/bumi/lnrpc synced 2025-07-10 05:17:24 +00:00

Only add macroon if not already set

This commit is contained in:
bumi 2019-02-12 17:24:14 +01:00
parent 39f97e69ca
commit 9382b216ef

View File

@ -7,7 +7,7 @@ module Lnrpc
end
def request_response(request:, call:, method:, metadata:)
metadata['macaroon'] = @macaroon
metadata['macaroon'] ||= @macaroon
yield
end
end