Implement a bunch of clang-tidy suggested changes. Remove FilesystemLogger

This commit is contained in:
Ian Roddis
2021-09-22 10:30:27 -03:00
parent 288ce28d29
commit e7b15b3847
25 changed files with 82 additions and 397 deletions

View File

@@ -7,12 +7,12 @@
#include <daggy/executors/task/ForkingTaskExecutor.hpp>
#include <daggy/loggers/dag_run/OStreamLogger.hpp>
#include <filesystem>
#include <fstream>
#include <iostream>
namespace rj = rapidjson;
Pistache::Http::Response REQUEST(std::string url, std::string payload = "")
Pistache::Http::Response REQUEST(const std::string &url,
const std::string &payload = "")
{
Pistache::Http::Experimental::Client client;
client.init();
@@ -28,12 +28,12 @@ Pistache::Http::Response REQUEST(std::string url, std::string payload = "")
request.then(
[&](Pistache::Http::Response rsp) {
ok = true;
response = rsp;
response = std::move(rsp);
},
[&](std::exception_ptr ptr) {
error = true;
try {
std::rethrow_exception(ptr);
std::rethrow_exception(std::move(ptr));
}
catch (std::exception &e) {
msg = e.what();