"lib/llm/src/git@developer.sourcefind.cn:OpenDAS/dynamo.git" did not exist on "0e4fffbc6b28b65f894ebcc520b13cea59db369d"
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 { ...@@ -92,13 +92,13 @@ pub struct LLMWorkerLoadCapacity {
fn main() -> Result<()> { fn main() -> Result<()> {
logging::init(); logging::init();
let args = Args::parse();
let worker = Worker::from_settings()?; let worker = Worker::from_settings()?;
worker.execute(|runtime| app(runtime, args)) worker.execute(app)
} }
// TODO - refactor much of this back into the library // 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 // 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 // to that end, we will use CLI args to get a singular config for scraping a single backend
let config = get_config(&args)?; 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