mirror of
https://github.com/bumi/lnrpc
synced 2025-07-11 05:47:22 +00:00
Only add macroon if not already set
This commit is contained in:
parent
39f97e69ca
commit
9382b216ef
@ -7,7 +7,7 @@ module Lnrpc
|
|||||||
end
|
end
|
||||||
|
|
||||||
def request_response(request:, call:, method:, metadata:)
|
def request_response(request:, call:, method:, metadata:)
|
||||||
metadata['macaroon'] = @macaroon
|
metadata['macaroon'] ||= @macaroon
|
||||||
yield
|
yield
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user