From f05a82ada15a69bc9c4d92b6423c0721a72625cf Mon Sep 17 00:00:00 2001 From: Piotr Mikulski Date: Thu, 2 Dec 2021 18:07:32 -0800 Subject: [PATCH] Improve `get_announce` method --- chain/network/src/routing/routing.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/chain/network/src/routing/routing.rs b/chain/network/src/routing/routing.rs index 802557e7d7f..44ed6dad121 100644 --- a/chain/network/src/routing/routing.rs +++ b/chain/network/src/routing/routing.rs @@ -299,7 +299,7 @@ impl RoutingTableView { .get_ser(ColAccountAnnouncements, account_id.as_ref().as_bytes()) .map(|res: Option| { if let Some(announce_account) = res { - self.add_account(announce_account.clone()); + self.account_peers.put(account_id.clone(), announce_account.clone()); Some(announce_account) } else { None