Skip to content
This repository was archived by the owner on Oct 28, 2021. It is now read-only.

Commit 4596b2b

Browse files
committed
Fix initialization order of m_lastPeerLogMessage
1 parent d0e68f6 commit 4596b2b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

libp2p/Host.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,8 +98,8 @@ Host::Host(
9898
m_alias{_secretAndENR.first},
9999
m_enr{_secretAndENR.second},
100100
m_lastPing(chrono::steady_clock::time_point::min()),
101-
m_lastPeerLogMessage(chrono::steady_clock::time_point::min()),
102-
m_capabilityHost(createCapabilityHost(*this))
101+
m_capabilityHost(createCapabilityHost(*this)),
102+
m_lastPeerLogMessage(chrono::steady_clock::time_point::min())
103103
{
104104
cnetnote << "Id: " << id();
105105
cnetnote << "ENR: " << m_enr;

0 commit comments

Comments
 (0)