Skip to content

Commit

Permalink
fix(ccp): fix to update the local table correctly, respecting the bes…
Browse files Browse the repository at this point in the history
…t route

Signed-off-by: Taiga Nakayama <dora@dora-gt.jp>

#464
  • Loading branch information
dora-gt committed Oct 30, 2019
1 parent eac6d68 commit c50b5a4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions crates/interledger-ccp/src/server.rs
Expand Up @@ -569,16 +569,16 @@ where
&incoming_tables,
prefix,
) {
if let Some((ref next_account, ref route)) =
if let Some((ref next_account, ref _route)) =
local_table.get_route(prefix)
{
if next_account.id() == best_next_account.id() {
continue;
} else {
better_routes.push((
prefix,
next_account.clone(),
route.clone(),
best_next_account.clone(),
best_route.clone(),
));
}
} else {
Expand Down

0 comments on commit c50b5a4

Please sign in to comment.