Skip to content
Permalink
Browse files

fix: help

  • Loading branch information...
mrfelton committed May 3, 2019
1 parent a013fe6 commit b53200d3a652278bbf051f657f928d295b5fef77
Showing with 10 additions and 2 deletions.
  1. +10 −2 services/grpc/helpers.js
@@ -15,9 +15,17 @@ export function forwardAll(service, baseEvent, target) {
forwardEvent(service, `${baseEvent}.error`, target)
}

/**
* Unforwards `data` and `error` events of the specified `base` subscription.
*/
export function unforwardAll(service, baseEvent) {
service.removeAllListeners(`${baseEvent}.data`)
service.removeAllListeners(`${baseEvent}.error`)
}

/**
* Logs a service method invocation.
*/
export function logGrpcCmd(service, method, payload) {
grpcLog.info(`Calling Lightning.getInfo with payload: %o`, payload)
export function logGrpcCmd(method, payload) {
grpcLog.info(`Calling ${method} with payload: %o`, payload)
}

0 comments on commit b53200d

Please sign in to comment.
You can’t perform that action at this time.