This commit is contained in:
Bryan Stitt 2022-08-15 17:23:13 +00:00
parent 66132ce638
commit 0cfe5bbb8a
4 changed files with 21 additions and 3 deletions

@ -247,4 +247,6 @@ in another repo: event subscriber
eth_1 | 2022-08-10T23:26:10.195014Z WARN web3_proxy::connections: chain is forked! 262 possible heads. 1/2/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
- [ ] 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

@ -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 two;
use argh::FromArgs;
use web3_proxy::app::get_migrated_db;
@ -23,7 +23,7 @@ pub struct TopConfig {
#[argh(subcommand)]
enum SubCommand {
CreateUser(create_user::CreateUserSubCommand),
Two(two::SubCommandTwo),
CheckConfig(check_config::CheckConfigSubCommand),
// TODO: sub command to downgrade migrations?
// TODO: sub command to add new api keys to an existing user?
}