Skip to content

Commit

Permalink
Better typenames
Browse files Browse the repository at this point in the history
  • Loading branch information
resetius committed Nov 30, 2023
1 parent f8b1d39 commit 7e43676
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/server.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void TNode<TPoller>::Connect() {
Connector.destroy();
}

Socket = NNet::TSocket(*Address, Poller);
Socket = typename TPoller::TSocket(*Address, Poller);
Connected = false;
Connector = DoConnect();
}
Expand All @@ -135,7 +135,7 @@ NNet::TTestTask TNode<TPoller>::DoConnect() {
}

template<typename TPoller>
NNet::TSimpleTask TRaftServer<TPoller>::InboundConnection(NNet::TSocket socket) {
NNet::TSimpleTask TRaftServer<TPoller>::InboundConnection(typename TPoller::TSocket socket) {
try {
auto client = std::make_shared<TNode<TPoller>>(
Poller, "client", std::move(socket), TimeSource
Expand Down
2 changes: 1 addition & 1 deletion src/server.h
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ class TRaftServer {

private:
NNet::TSimpleTask InboundServe();
NNet::TSimpleTask InboundConnection(NNet::TSocket socket);
NNet::TSimpleTask InboundConnection(typename TPoller::TSocket socket);
NNet::TSimpleTask Idle();
void DrainNodes();

Expand Down

0 comments on commit 7e43676

Please sign in to comment.