-
Notifications
You must be signed in to change notification settings - Fork 208
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
Fix some settings not being applied properly #661
Changes from 3 commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ class Updater : IUpdater { | |
private var currentUpdateTaskId = "" | ||
|
||
init { | ||
serverConfig.subscribeTo(serverConfig.globalUpdateInterval, ::scheduleUpdateTask) | ||
serverConfig.subscribeTo(serverConfig.globalUpdateInterval, ::scheduleUpdateTask, ignoreInitialValue = false) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The interval also gets started in the ServerConfig |
||
serverConfig.subscribeTo( | ||
serverConfig.maxSourcesInParallel, | ||
{ value -> | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -79,7 +79,7 @@ fun applicationSetup() { | |
} else { | ||
setLogLevel(Level.INFO) | ||
} | ||
}) | ||
}, ignoreInitialValue = false) | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this
still needed in the ConfigManger with this change? I believe the issue with the debug logs is because I forgot to set the default log level, which was INFO before in the logback config file, when I added the file logging There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I think it still is, configs would get initialized and there are some logs in the config manager that should be outputted |
||
|
||
// Application dirs | ||
val applicationDirs = ApplicationDirs() | ||
|
@@ -206,7 +206,8 @@ fun applicationSetup() { | |
System.getProperties()["socksProxyHost"] = "" | ||
System.getProperties()["socksProxyPort"] = "" | ||
} | ||
} | ||
}, | ||
ignoreInitialValue = false | ||
) | ||
|
||
// AES/CBC/PKCS7Padding Cypher provider for zh.copymanga | ||
|
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.
does this work?
I think I started the interval in the ServerSetup because the ProtoBackupExport never gets loaded unless a backup gets created
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.
It should, objects are statically initialized
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.
Though I see now that they are initialized in ServerSetup, so I'll revert these ones
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.
I think I confused it with the Updater, because that only gets initialized lazily, so I just didn't change it like this when I added the server setting subscription