-
-
Notifications
You must be signed in to change notification settings - Fork 57
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Refactor config, add settings
command
#295
Refactor config, add settings
command
#295
Conversation
todo:
|
@jimkoen what's the status on this? |
I have a working version on my end where I need to fix 1-2 remaining build errors related to formatting of console output. However as discussed privately I'm held up by exams, so this won't land before the week of the 29th of April. |
Thank you for the info |
into Settings by adding getters/setters Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
Make ComposedKey formattable by overloading fmt::format Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
99c328d
to
ff81242
Compare
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
Signed-off-by: Lucca Jiménez Könings <development@jimkoen.com>
@lionkor Should be ready for review. Unfortunately I cannot reproduce the test failures on Ubuntu 20.04 on my end. Tests work fine on FreeBSD (and other OS's as indicated by the Actions result). For now I think it'd make sense to start the review, so the issue doesn't become any more stale than it already is. |
ready for review |
And please run clang-format |
Also, we need to do this: diff --git a/src/THeartbeatThread.cpp b/src/THeartbeatThread.cpp
index a7f37c6..3e6699c 100644
--- a/src/THeartbeatThread.cpp
+++ b/src/THeartbeatThread.cpp
@@ -40,8 +40,8 @@ void THeartbeatThread::operator()() {
static std::chrono::high_resolution_clock::time_point LastUpdateReminderTime = std::chrono::high_resolution_clock::now();
bool isAuth = false;
std::chrono::high_resolution_clock::duration UpdateReminderTimePassed;
- auto UpdateReminderTimeout = ChronoWrapper::TimeFromStringWithLiteral(Application::Settings.getAsString(Settings::Key::Misc_UpdateReminderTime));
while (!Application::IsShuttingDown()) {
+ auto UpdateReminderTimeout = ChronoWrapper::TimeFromStringWithLiteral(Application::Settings.getAsString(Settings::Key::Misc_UpdateReminderTime));
Body = GenerateCall();
// a hot-change occurs when a setting has changed, to update the backend of that change.
auto Now = std::chrono::high_resolution_clock::now(); We need to do this because UpdateReminderTime is (correctly) read+write, but it's only ever read once. That's broken :) |
Also remove line ChronoWrapper.cpp:13 so it doesn't spam ;) |
The error message when accessing an unknown key or category sucks, can we get that to say something like "that's not a setting ya doofus" |
Remove ubuntu 20.04 support due to their outdated ahh compiler as well please |
3e313bf
to
08374b1
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
lgtm
settings
command
Fix #158