gossip: Make gossip_store_append private

Signed-off-by: Christian Decker <decker.christian@gmail.com>
This commit is contained in:
Christian Decker
2018-03-25 20:53:54 +02:00
committed by Rusty Russell
parent 44e23b3773
commit 82e1f5ade1
2 changed files with 8 additions and 11 deletions

View File

@@ -46,8 +46,14 @@ struct gossip_store *gossip_store_new(const tal_t *ctx)
return gs;
}
void gossip_store_append(struct gossip_store *gs, const u8 *msg)
/**
* Write an incoming message to the `gossip_store`
*
* @param gs The gossip_store to write to
* @param msg The message to write
* @return The newly created and initialized `gossip_store`
*/
static void gossip_store_append(struct gossip_store *gs, const u8 *msg)
{
u32 msglen = tal_len(msg);
beint32_t belen = cpu_to_be32(msglen);

View File

@@ -15,15 +15,6 @@ struct routing_state;
struct gossip_store *gossip_store_new(const tal_t *ctx);
/**
* Write an incoming message to the `gossip_store`
*
* @param gs The gossip_store to write to
* @param msg The message to write
* @return The newly created and initialized `gossip_store`
*/
void gossip_store_append(struct gossip_store *gs, const u8 *msg);
/**
* Retrieve the next gossip message if any
*