Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
dynamo
Commits
d694ca6e
"lib/llm/src/git@developer.sourcefind.cn:OpenDAS/dynamo.git" did not exist on "0e4fffbc6b28b65f894ebcc520b13cea59db369d"
Commit
d694ca6e
authored
Feb 26, 2025
by
Ryan McCormick
Committed by
GitHub
Feb 26, 2025
Browse files
refactor: Move arg parsing into app for cleaner signatures (#281)
parent
494d5625
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
3 deletions
+3
-3
applications/llm/count/src/main.rs
applications/llm/count/src/main.rs
+3
-3
No files found.
applications/llm/count/src/main.rs
View file @
d694ca6e
...
@@ -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
)
?
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment