Skip to content

Commit 1be8b2d

Browse files
committed
refactor
1 parent 71505c4 commit 1be8b2d

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

workflows/src/bin/tps.rs

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
use std::vec;
2-
3-
use dkn_workflows::{DriaWorkflowsConfig, OllamaConfig};
4-
use ollama_workflows::ollama_rs::{
5-
generation::{completion::request::GenerationRequest, options::GenerationOptions},
6-
Ollama,
7-
};
8-
use ollama_workflows::Model;
9-
101
#[cfg(feature = "profiling")]
11-
use sysinfo::{CpuRefreshKind, RefreshKind, System, MINIMUM_CPU_UPDATE_INTERVAL};
2+
mod profile {
3+
pub use dkn_workflows::{DriaWorkflowsConfig, OllamaConfig};
4+
pub use ollama_workflows::ollama_rs::{
5+
generation::{completion::request::GenerationRequest, options::GenerationOptions},
6+
Ollama,
7+
};
8+
pub use ollama_workflows::Model;
9+
pub use sysinfo::{CpuRefreshKind, RefreshKind, System, MINIMUM_CPU_UPDATE_INTERVAL};
10+
}
1211

1312
#[tokio::main]
1413
async fn main() {
1514
#[cfg(feature = "profiling")]
1615
{
16+
use crate::profile::*;
1717
// initialize logger
1818
env_logger::init();
1919

0 commit comments

Comments
 (0)