Skip to content

Commit

Permalink
gossip: Make gossip_store_append private
Browse files Browse the repository at this point in the history
Signed-off-by: Christian Decker <[email protected]>
  • Loading branch information
cdecker authored and rustyrussell committed Mar 25, 2018
1 parent 44e23b3 commit 82e1f5a
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 11 deletions.
10 changes: 8 additions & 2 deletions gossipd/gossip_store.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
9 changes: 0 additions & 9 deletions gossipd/gossip_store.h
Original file line number Diff line number Diff line change
Expand Up @@ -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
*
Expand Down

0 comments on commit 82e1f5a

Please sign in to comment.