aboutsummaryrefslogblamecommitdiffstats
path: root/tools/comments-test.js
blob: 5a73e6f64a6862cd9692e437bd5b3eba96ebc2a0 (plain) (tree)
1
2
3
4
5
6
7
8






                                                                              
                                       
















                                                                                                                                                      
                                                                                                                                              
                                     




                                                                             

                     









                                                                                        


                                                               




                                                                                                                                                                     








                                                                                                                               
                        























































                                                                                                                                                                                                                                                                                                                                                                                                                   
="w">        if (streaming) {
          if (key === "sendPayment") {
            fn = params => method.call(lnrpc, target.meta, params);
          } else {
            fn = params => method.call(lnrpc, params, target.meta);
          }
        } else {
          fn = params => promisify(method).call(lnrpc, params, target.meta);
        }

        return fn;
      }

      return target[key]; // forward
    }
  });
};