| 1325 | } |
| 1326 | |
| 1327 | static struct command_result *currency_error(struct command *cmd, |
| 1328 | const char *method, |
| 1329 | const char *buf, |
| 1330 | const jsmntok_t *error, |
| 1331 | struct currency_time *ctime) |
| 1332 | { |
| 1333 | struct bkpr *bkpr = bkpr_of(cmd->plugin); |
| 1334 | |
| 1335 | if (!bkpr->warned_currency_fail) { |
| 1336 | plugin_log(cmd->plugin, LOG_BROKEN, |
| 1337 | "error calling %s: %.*s", |
| 1338 | method, json_tok_full_len(error), |
| 1339 | json_tok_full(buf, error)); |
| 1340 | bkpr->warned_currency_fail = true; |
| 1341 | } |
| 1342 | |
| 1343 | return rinfo_one_done(cmd, ctime->rinfo); |
| 1344 | } |
| 1345 | |
| 1346 | static void lookup_currency(struct command *cmd, |
| 1347 | struct bkpr *bkpr, |
nothing calls this directly
no test coverage detected