From 9df3dd7d900251b6632c749884598924293489f6 Mon Sep 17 00:00:00 2001 From: Bob Polis Date: Sun, 5 Nov 2023 00:49:55 +0000 Subject: [PATCH] Use sc::request from libscrequest --- src/main.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/main.cpp b/src/main.cpp index 78cecb0..0a7b8bd 100644 --- a/src/main.cpp +++ b/src/main.cpp @@ -6,7 +6,7 @@ #include #include #include -#include "requester.hpp" +#include #include "compiler.hpp" sc::logger logger {"curly", sc::loglevel::info}; @@ -54,7 +54,8 @@ int main(int argc, char* argv[]) { // here when no file args std::string base_url {"https://bobpolis.com/krul/"}; std::string next_url {"start.txt"}; - requester req; + sc::requester req; + req.logger(&logger); while (!done) { std::istringstream in {req.get(base_url + next_url)}; next_url = proc.eval(in, done);