Only add macroon if not already set
This commit is contained in:
1 parent
39f97e69ca
commit
9382b216ef
1 file changed
+1
-1
@@ -7,7 +7,7 @@ module Lnrpc
|
||||
end
|
||||
|
||||
def request_response(request:, call:, method:, metadata:)
|
||||
metadata['macaroon'] = @macaroon
|
||||
metadata['macaroon'] ||= @macaroon
|
||||
yield
|
||||
end
|
||||
end
|
||||
|
||||
Reference in new issue
Block a user