libplugin: don't expose the rpc_conn struct

This commit is contained in:
darosior
2020-02-03 10:14:43 +01:00
committed by Rusty Russell
parent b31e3b1541
commit 02fe34ed95
3 changed files with 31 additions and 29 deletions

View File

@@ -69,7 +69,7 @@ static struct command_result *json_autocleaninvoice(struct command *cmd,
static void init(struct plugin *p,
const char *buf UNUSED, const jsmntok_t *config UNUSED)
{
rpc = &p->rpc_conn;
rpc = p->rpc_conn;
if (cycle_seconds) {
plugin_log(p, LOG_INFORM, "autocleaning every %"PRIu64" seconds", cycle_seconds);