Skip to content

Commit

Permalink
fixed todos
Browse files Browse the repository at this point in the history
  • Loading branch information
FlorianReimold committed Apr 19, 2024
1 parent 76a1e33 commit 79695cd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion samples/ecaludp_perftool/src/sender_async.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include "sender_async.h"

#include <cstdlib>
#include <exception>
#include <iostream>
#include <memory>
Expand Down Expand Up @@ -59,7 +60,7 @@ void SenderAsync::start()
catch (const std::exception& e)
{
std::cerr << "Error creating socket: " << e.what() << '\n';
return; // TODO: Exit the app?
std::exit(1);
}

auto message = std::make_shared<std::string>(parameters_.message_size, 'a');
Expand Down
3 changes: 2 additions & 1 deletion samples/ecaludp_perftool/src/sender_sync.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@

#include "sender_sync.h"

#include <cstdlib>
#include <exception>
#include <iostream>
#include <memory>
Expand Down Expand Up @@ -61,7 +62,7 @@ void SenderSync::send_loop()
catch (const std::exception& e)
{
std::cerr << "Error creating socket: " << e.what() << '\n';
return; // TODO: Exit the app?
std::exit(1);
}

const std::string message = std::string(parameters_.message_size, 'a');
Expand Down

0 comments on commit 79695cd

Please sign in to comment.