-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Clean up deprecated options and add CHECK macro #9036
Conversation
|
Thanks for that. I'll wait with #8963 for this. |
ascjones
left a comment
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.
Looks good!
andresilva
left a comment
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. Minor question regarding arguments related to the dapps server.
parity/cli/mod.rs
Outdated
| FLAG flag_webapp: (bool) = false, or |_| None, | ||
| "-w, --webapp", | ||
| "Does nothing; dapps server is on by default now.", | ||
| "Does nothing; dapps server is removed.", |
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 nothing; dapps server has been removed.
parity/cli/mod.rs
Outdated
|
|
||
| ARG arg_dapps_port: (Option<u16>) = None, or |c: &Config| c.dapps.as_ref()?.port.clone(), | ||
| "--dapps-port=[PORT]", | ||
| "Dapps server is merged with HTTP JSON-RPC server. Use --jsonrpc-port.", |
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.
Should these arguments say instead that the dapps server has been removed?
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.
Yeah right. I checked, those arguments indeed does nothing.
andresilva
left a comment
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.
👍
|
|
* master: Clean up deprecated options and add CHECK macro (#9036) Replace `std::env::home_dir` with `dirs::home_dir` (#9077) fix warning in secret-store test (#9074) SeedHashCompute remove needless `new` impl (#9063) remove trait bounds from several structs (#9055) docs: add changelog for 1.10.9 stable and 1.11.6 beta (#9069) Enable test in `miner/pool/test` (#9072)
We have added some deprecated options but forgot to include them in the
deprecatedmod. This makes users not be given any warnings if options are deprecated. This PR adds them back. In addition, options are organized by the version they were deprecated, this makes it possible to make a set of deprecation hard errors in the future.A CHECK macro is also added in
usage!. We had a hard coded check conditions in the macro before. Using the newCHECKsyntax we can move it out.Affects #9017. Deprecated
dappsoptions will need to be added to thedeprecatedmod.