feat: connect server to the new interpreter
This commit is contained in:
parent
9b9f9f16f6
commit
f5d45f6a1d
6 changed files with 70 additions and 145 deletions
|
|
@ -17,8 +17,8 @@ pub struct Configuration {
|
|||
help = "Port for the server to listen on"
|
||||
)]
|
||||
port: u16,
|
||||
#[arg(short, long, help = "Path to the data file")]
|
||||
file: PathBuf,
|
||||
#[arg(short, long, help = "Path to the folder for database data")]
|
||||
folder: PathBuf,
|
||||
#[arg(short, long, help = "Delay between rows in milliseconds")]
|
||||
throttle: Option<u64>,
|
||||
}
|
||||
|
|
@ -30,8 +30,8 @@ impl Configuration {
|
|||
}
|
||||
|
||||
#[inline]
|
||||
pub fn get_file_path(&self) -> &PathBuf {
|
||||
&self.file
|
||||
pub fn get_folder_path(&self) -> &PathBuf {
|
||||
&self.folder
|
||||
}
|
||||
|
||||
#[inline]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue