(command: string)
| 120 | } |
| 121 | |
| 122 | function isLeaseRpcCommand(command: string): command is LeaseRpcCommand { |
| 123 | return ( |
| 124 | command === 'lease_allocate' || command === 'lease_heartbeat' || command === 'lease_release' |
| 125 | ); |
| 126 | } |
| 127 | |
| 128 | function leaseRpcMethodForCommand(command: LeaseRpcCommand): string { |
| 129 | switch (command) { |
no outgoing calls
no test coverage detected