-
Notifications
You must be signed in to change notification settings - Fork 492
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
Config
: Remove converter
#11834
Config
: Remove converter
#11834
Conversation
@@ -14,6 +14,8 @@ namespace WalletWasabi.Daemon; | |||
|
|||
public class Config | |||
{ | |||
public static readonly IDictionary EnvironmentVariables = Environment.GetEnvironmentVariables(); |
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.
Moved to a static variable to avoid executing it multiple times.
return false; | ||
} | ||
|
||
public static T[] GetValues<T>(string key, string[] args, Func<string, T> converter) | ||
public static string[] GetValues(string key, string[] args) |
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.
Converter was unused.
{ | ||
var values = GetValues(key, args, converter); |
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.
Calling GetValues
does not make too much sense because we just use first value we find.
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.
tACK
Precursor for #11764
Measurements
No big change is expected here. Measured using Release configuration.
PR
153 ms
152 ms
154 ms
152 ms
147 ms
master
150 ms
156 ms
155 ms
153 ms