Commit 2324f6f4 authored by legoc's avatar legoc
Browse files

(split) Comment on variable use

parent 0134ec44
...@@ -1147,6 +1147,7 @@ std::unique_ptr<Requester> Requester::create(Instance & instance, const std::str ...@@ -1147,6 +1147,7 @@ std::unique_ptr<Requester> Requester::create(Instance & instance, const std::str
throw RequesterCreationException(response[message::RequestResponse::MESSAGE].GetString()); throw RequesterCreationException(response[message::RequestResponse::MESSAGE].GetString());
} }
// TODO simplify the use of some variables: responderUrl.
return unique_ptr<Requester>(new Requester(&This::m_instance, responderUrl, requesterPort, responderPort, name, responderId, requesterId)); return unique_ptr<Requester>(new Requester(&This::m_instance, responderUrl, requesterPort, responderPort, name, responderId, requesterId));
} }
......
...@@ -539,6 +539,7 @@ std::unique_ptr<application::Subscriber> Server::createSubscriber(int id, const ...@@ -539,6 +539,7 @@ std::unique_ptr<application::Subscriber> Server::createSubscriber(int id, const
int synchronizerPort = response[message::PublisherResponse::SYNCHRONIZER_PORT].GetInt(); int synchronizerPort = response[message::PublisherResponse::SYNCHRONIZER_PORT].GetInt();
int numberOfSubscribers = response[message::PublisherResponse::NUMBER_OF_SUBSCRIBERS].GetInt(); int numberOfSubscribers = response[message::PublisherResponse::NUMBER_OF_SUBSCRIBERS].GetInt();
// TODO simplify the use of some variables: e.g. m_serverEndpoint accessible from this.
unique_ptr<application::Subscriber> subscriber(new application::Subscriber(this, publisherPort, synchronizerPort, publisherName, numberOfSubscribers, instanceName, id, m_serverEndpoint.toString(), m_serverEndpoint.withPort(m_statusPort).toString())); unique_ptr<application::Subscriber> subscriber(new application::Subscriber(this, publisherPort, synchronizerPort, publisherName, numberOfSubscribers, instanceName, id, m_serverEndpoint.toString(), m_serverEndpoint.withPort(m_statusPort).toString()));
subscriber->init(); subscriber->init();
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment