cleanup
This commit is contained in:
parent
66132ce638
commit
0cfe5bbb8a
2
TODO.md
2
TODO.md
@ -248,3 +248,5 @@ in another repo: event subscriber
|
|||||||
eth_1 | 2022-08-10T23:26:10.195658Z WARN web3_proxy::connections: chain is forked! 262 possible heads. 2/3/5/5 rpcs have 0x0538…bfff
|
eth_1 | 2022-08-10T23:26:10.195658Z WARN web3_proxy::connections: chain is forked! 262 possible heads. 2/3/5/5 rpcs have 0x0538…bfff
|
||||||
- [ ] disable redis persistence in dev
|
- [ ] disable redis persistence in dev
|
||||||
- [ ] fix ip detection when running in dev
|
- [ ] fix ip detection when running in dev
|
||||||
|
- [ ] cache api keys that are not in the database?
|
||||||
|
- [ ] double check weight sorting code
|
||||||
|
16
web3_proxy/src/bin/web3_proxy_cli/check_config.rs
Normal file
16
web3_proxy/src/bin/web3_proxy_cli/check_config.rs
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
use argh::FromArgs;
|
||||||
|
|
||||||
|
#[derive(FromArgs, PartialEq, Debug)]
|
||||||
|
/// Second subcommand.
|
||||||
|
#[argh(subcommand, name = "check_config")]
|
||||||
|
pub struct CheckConfigSubCommand {
|
||||||
|
#[argh(switch)]
|
||||||
|
/// whether to fooey
|
||||||
|
fooey: bool,
|
||||||
|
}
|
||||||
|
|
||||||
|
impl CheckConfigSubCommand {
|
||||||
|
pub async fn main(self) -> anyhow::Result<()> {
|
||||||
|
todo!()
|
||||||
|
}
|
||||||
|
}
|
@ -1,5 +1,5 @@
|
|||||||
|
mod check_config;
|
||||||
mod create_user;
|
mod create_user;
|
||||||
mod two;
|
|
||||||
|
|
||||||
use argh::FromArgs;
|
use argh::FromArgs;
|
||||||
use web3_proxy::app::get_migrated_db;
|
use web3_proxy::app::get_migrated_db;
|
||||||
@ -23,7 +23,7 @@ pub struct TopConfig {
|
|||||||
#[argh(subcommand)]
|
#[argh(subcommand)]
|
||||||
enum SubCommand {
|
enum SubCommand {
|
||||||
CreateUser(create_user::CreateUserSubCommand),
|
CreateUser(create_user::CreateUserSubCommand),
|
||||||
Two(two::SubCommandTwo),
|
CheckConfig(check_config::CheckConfigSubCommand),
|
||||||
// TODO: sub command to downgrade migrations?
|
// TODO: sub command to downgrade migrations?
|
||||||
// TODO: sub command to add new api keys to an existing user?
|
// TODO: sub command to add new api keys to an existing user?
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user