| 838 | } |
| 839 | |
| 840 | static struct command_result *sleep_cb(struct payment *payment) |
| 841 | { |
| 842 | struct command *cmd = payment_command(payment); |
| 843 | assert(cmd); |
| 844 | assert(payment->waitresult_timer == NULL); |
| 845 | payment->waitresult_timer |
| 846 | = command_timer(cmd, |
| 847 | time_from_msec(COLLECTOR_TIME_WINDOW_MSEC), |
| 848 | sleep_done, payment); |
| 849 | return command_still_pending(cmd); |
| 850 | } |
| 851 | |
| 852 | REGISTER_PAYMENT_MODIFIER(sleep, sleep_cb); |
| 853 |
nothing calls this directly
no test coverage detected