mirror of
https://github.com/bumi/lnrpc
synced 2025-07-07 04:25:52 +00:00
fix: pass block through client helper methods
This commit is contained in:
parent
9e369ac6b1
commit
37f240da7f
@ -1,7 +1,7 @@
|
|||||||
PATH
|
PATH
|
||||||
remote: .
|
remote: .
|
||||||
specs:
|
specs:
|
||||||
lnrpc (0.5.2.beta)
|
lnrpc (0.5.2)
|
||||||
google-protobuf (>= 3.7)
|
google-protobuf (>= 3.7)
|
||||||
grpc (>= 1.19.0)
|
grpc (>= 1.19.0)
|
||||||
|
|
||||||
@ -9,10 +9,10 @@ GEM
|
|||||||
remote: https://rubygems.org/
|
remote: https://rubygems.org/
|
||||||
specs:
|
specs:
|
||||||
diff-lcs (1.3)
|
diff-lcs (1.3)
|
||||||
google-protobuf (3.7.0)
|
google-protobuf (3.7.0-x86_64-linux)
|
||||||
googleapis-common-protos-types (1.0.3)
|
googleapis-common-protos-types (1.0.3)
|
||||||
google-protobuf (~> 3.0)
|
google-protobuf (~> 3.0)
|
||||||
grpc (1.19.0)
|
grpc (1.19.0-x86_64-linux)
|
||||||
google-protobuf (~> 3.1)
|
google-protobuf (~> 3.1)
|
||||||
googleapis-common-protos-types (~> 1.0.0)
|
googleapis-common-protos-types (~> 1.0.0)
|
||||||
rake (10.5.0)
|
rake (10.5.0)
|
||||||
|
@ -62,7 +62,7 @@ module Lnrpc
|
|||||||
params = args[0]
|
params = args[0]
|
||||||
|
|
||||||
args[0] = params.nil? ? request_class_for(m).new : request_class_for(m).new(params)
|
args[0] = params.nil? ? request_class_for(m).new : request_class_for(m).new(params)
|
||||||
self.grpc_client.send(m, *args)
|
self.grpc_client.send(m, *args, &block)
|
||||||
else
|
else
|
||||||
super
|
super
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user