Fixed error

This commit is contained in:
Alexey Milovidov 2020-03-10 00:14:27 +03:00
parent 651070d324
commit fea40a5b9b

View File

@ -41,8 +41,8 @@ MultiplexedConnections::MultiplexedConnections(
connection->setThrottler(throttler);
ReplicaState replica_state;
replica_state.pool_entry = std::move(connection);
replica_state.connection = &*connection;
replica_state.pool_entry = std::move(connection);
replica_states.push_back(std::move(replica_state));
}
@ -224,7 +224,7 @@ std::string MultiplexedConnections::dumpAddressesUnlocked() const
for (const ReplicaState & state : replica_states)
{
const Connection * connection = state.connection;
if (connection != nullptr)
if (connection)
{
os << (is_first ? "" : "; ") << connection->getDescription();
is_first = false;