"lib/engines/python/Cargo.toml" did not exist on "e5db9e8634e242ec7965c522ee0bde3034c4a8a0"
Commit d694ca6e authored by Ryan McCormick's avatar Ryan McCormick Committed by GitHub
Browse files

refactor: Move arg parsing into app for cleaner signatures (#281)

parent 494d5625
......@@ -92,13 +92,13 @@ pub struct LLMWorkerLoadCapacity {
fn main() -> Result<()> {
logging::init();
let args = Args::parse();
let worker = Worker::from_settings()?;
worker.execute(|runtime| app(runtime, args))
worker.execute(app)
}
// TODO - refactor much of this back into the library
async fn app(runtime: Runtime, args: Args) -> Result<()> {
async fn app(runtime: Runtime) -> Result<()> {
let args = Args::parse();
// we will start by assuming that there is no oscar and no planner
// to that end, we will use CLI args to get a singular config for scraping a single backend
let config = get_config(&args)?;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment