File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -1832,8 +1832,8 @@ bool AppInitMain(NodeContext& node)
1832
1832
InitError (strprintf (_ (" Could not find or parse specified asmap: '%s'" ).translated , asmap_path));
1833
1833
return false ;
1834
1834
}
1835
- node.connman ->SetAsmap (asmap);
1836
1835
const uint256 asmap_version = SerializeHash (asmap);
1836
+ node.connman ->SetAsmap (std::move (asmap));
1837
1837
LogPrintf (" Using asmap version %s for IP bucketing.\n " , asmap_version.ToString ());
1838
1838
} else {
1839
1839
LogPrintf (" Using /16 prefix for IP bucketing.\n " );
Original file line number Diff line number Diff line change @@ -331,7 +331,7 @@ class CConnman
331
331
*/
332
332
int64_t PoissonNextSendInbound (int64_t now, int average_interval_seconds);
333
333
334
- void SetAsmap (std::vector<bool > asmap) { addrman.m_asmap = asmap; }
334
+ void SetAsmap (std::vector<bool > asmap) { addrman.m_asmap = std::move ( asmap) ; }
335
335
336
336
private:
337
337
struct ListenSocket {
You can’t perform that action at this time.
0 commit comments