| 1051 | } |
| 1052 | |
| 1053 | void maybe_send_query_responses(struct daemon *daemon) |
| 1054 | { |
| 1055 | /* Rotate through, so we don't favor a single peer. */ |
| 1056 | struct list_head used; |
| 1057 | struct peer *p; |
| 1058 | |
| 1059 | list_head_init(&used); |
| 1060 | while ((p = list_pop(&daemon->peers, struct peer, list)) != NULL) { |
| 1061 | list_add(&used, &p->list); |
| 1062 | if (maybe_send_query_responses_peer(p)) |
| 1063 | break; |
| 1064 | } |
| 1065 | list_append_list(&daemon->peers, &used); |
| 1066 | } |
| 1067 | |
| 1068 | bool query_channel_range(struct daemon *daemon, |
| 1069 | struct peer *peer, |
nothing calls this directly
no test coverage detected