Browse Source

Remove unused parameter rstate in delete_connection(struct routing_state *rstate, ...)

ppa-0.6.1
practicalswift 7 years ago
committed by Christian Decker
parent
commit
a3cd9495ef
  1. 5
      gossipd/routing.c

5
gossipd/routing.c

@ -269,8 +269,7 @@ get_or_make_connection(struct routing_state *rstate,
return nc; return nc;
} }
static void delete_connection(struct routing_state *rstate, static void delete_connection(const struct node_connection *connection)
const struct node_connection *connection)
{ {
tal_free(connection); tal_free(connection);
} }
@ -1197,7 +1196,7 @@ static void routing_failure_on_nc(struct routing_state *rstate,
/* Prevent it for 20 seconds. */ /* Prevent it for 20 seconds. */
nc->unroutable_until = now + 20; nc->unroutable_until = now + 20;
else else
delete_connection(rstate, nc); delete_connection(nc);
} }
void routing_failure(struct routing_state *rstate, void routing_failure(struct routing_state *rstate,

Loading…
Cancel
Save