Skip to content

Commit f7dfd50

Browse files
committed
fix warning unused variable in gateio
1 parent 7a84ac6 commit f7dfd50

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

vpr/src/server/gateio.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ void GateIO::moveTasksToSendQueue(std::vector<TaskPtr>& tasks)
6060
tasks.clear();
6161
}
6262

63-
GateIO::ActivityStatus GateIO::checkClientConnection(sockpp::tcp6_acceptor& tcpServer, std::unique_ptr<ClientAliveTracker>& clientAliveTrackerPtr, std::optional<sockpp::tcp6_socket>& clientOpt) {
63+
GateIO::ActivityStatus GateIO::checkClientConnection(sockpp::tcp6_acceptor& tcpServer, std::optional<sockpp::tcp6_socket>& clientOpt) {
6464
ActivityStatus status = ActivityStatus::WAITING_ACTIVITY;
6565

6666
sockpp::inet6_address peer;
@@ -246,7 +246,7 @@ void GateIO::startListening()
246246
bool isCommunicationProblemDetected = false;
247247

248248
if (!clientOpt) {
249-
ActivityStatus status = checkClientConnection(tcpServer, clientAliveTrackerPtr, clientOpt);
249+
ActivityStatus status = checkClientConnection(tcpServer, clientOpt);
250250
if (status == ActivityStatus::CLIENT_ACTIVITY) {
251251
if (clientAliveTrackerPtr) {
252252
clientAliveTrackerPtr->reset();

vpr/src/server/gateio.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ class GateIO
211211
void startListening(); // thread worker function
212212

213213
/// helper functions to be executed inside startListening
214-
ActivityStatus checkClientConnection(sockpp::tcp6_acceptor& tcpServer, std::unique_ptr<ClientAliveTracker>& clientAliveTrackerPtr, std::optional<sockpp::tcp6_socket>& clientOpt);
214+
ActivityStatus checkClientConnection(sockpp::tcp6_acceptor& tcpServer, std::optional<sockpp::tcp6_socket>& clientOpt);
215215
ActivityStatus handleSendingData(sockpp::tcp6_socket& client);
216216
ActivityStatus handleReceivingData(sockpp::tcp6_socket& client, comm::TelegramBuffer& telegramBuff, std::string& receivedMessage);
217217
ActivityStatus handleTelegrams(std::vector<comm::TelegramFramePtr>& telegramFrames, comm::TelegramBuffer& telegramBuff);

0 commit comments

Comments
 (0)