fix: small changes
This commit is contained in:
parent
600d23e580
commit
9a062cc7a8
2 changed files with 3 additions and 7 deletions
|
@ -57,7 +57,7 @@ async fn main() -> Result<(), Box<dyn std::error::Error>> {
|
|||
|
||||
let cfg = ConfigArgs::parse();
|
||||
|
||||
let db = Database::connect("sqlite://./test.db").await?;
|
||||
let db = Database::connect(cfg.database.clone()).await?;
|
||||
let store = Arc::new(Mutex::new(HashMap::new()));
|
||||
|
||||
let app = Router::new()
|
||||
|
|
|
@ -1,3 +1,5 @@
|
|||
#![allow(non_snake_case)]
|
||||
|
||||
use uuid::Uuid;
|
||||
use serde::{Serialize, Deserialize};
|
||||
|
||||
|
@ -8,12 +10,6 @@ pub struct Error {
|
|||
pub cause: String,
|
||||
}
|
||||
|
||||
impl Error {
|
||||
pub fn simple(msg: String) -> Error {
|
||||
Error { error: msg.clone(), errorMessage: msg.clone(), cause: msg }
|
||||
}
|
||||
}
|
||||
|
||||
#[derive(Serialize, Deserialize)]
|
||||
pub struct Agent {
|
||||
pub name: String,
|
||||
|
|
Loading…
Reference in a new issue