...
This commit is contained in:
		@@ -51,6 +51,7 @@ async fn main() {
 | 
				
			|||||||
    // new DB option
 | 
					    // new DB option
 | 
				
			||||||
    let option = herodb::options::DBOption {
 | 
					    let option = herodb::options::DBOption {
 | 
				
			||||||
        dir: args.dir,
 | 
					        dir: args.dir,
 | 
				
			||||||
 | 
					        port,
 | 
				
			||||||
        debug: args.debug,
 | 
					        debug: args.debug,
 | 
				
			||||||
        encryption_key: args.encryption_key,
 | 
					        encryption_key: args.encryption_key,
 | 
				
			||||||
        encrypt: args.encrypt,
 | 
					        encrypt: args.encrypt,
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -7,6 +7,7 @@ pub enum BackendType {
 | 
				
			|||||||
#[derive(Debug, Clone)]
 | 
					#[derive(Debug, Clone)]
 | 
				
			||||||
pub struct DBOption {
 | 
					pub struct DBOption {
 | 
				
			||||||
    pub dir: String,
 | 
					    pub dir: String,
 | 
				
			||||||
 | 
					    pub port: u16,
 | 
				
			||||||
    pub debug: bool,
 | 
					    pub debug: bool,
 | 
				
			||||||
    pub encrypt: bool,
 | 
					    pub encrypt: bool,
 | 
				
			||||||
    pub encryption_key: Option<String>,
 | 
					    pub encryption_key: Option<String>,
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user