Skip to content

Commit

Permalink
Better naming
Browse files Browse the repository at this point in the history
  • Loading branch information
resetius committed Jul 15, 2024
1 parent 09dbde4 commit c1446d1
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions examples/echoclient.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
using namespace NNet;

template<bool debug, typename TPoller>
TVoidSuspendedTask client(TPoller& poller, TAddress addr)
TFuture<void> client(TPoller& poller, TAddress addr)
{
static constexpr int maxLineSize = 4096;
using TSocket = typename TPoller::TSocket;
Expand Down Expand Up @@ -38,8 +38,8 @@ TVoidSuspendedTask client(TPoller& poller, TAddress addr)
template<typename TPoller>
void run(bool debug, TAddress address)
{
NNet::TLoop<TPoller> loop;
NNet::THandle h;
TLoop<TPoller> loop;
TFuture<void> h;
if (debug) {
h = client<true>(loop.Poller(), std::move(address));
} else {
Expand All @@ -48,7 +48,6 @@ void run(bool debug, TAddress address)
while (!h.done()) {
loop.Step();
}
h.destroy();
}

int main(int argc, char** argv) {
Expand Down

0 comments on commit c1446d1

Please sign in to comment.