Browse Source

Update db.rs

new_protocol
ThePerkinrex 5 years ago
parent
commit
bdc1350276
No known key found for this signature in database GPG Key ID: 1F45A7C4BFB41607
  1. 2
      server/src/db.rs

2
server/src/db.rs

@ -11,7 +11,7 @@ use uuid::Uuid;
use std::convert::TryInto; use std::convert::TryInto;
pub async fn start() -> DbClient { pub async fn start() -> DbClient {
let mut server = DbServer::new(Db::new(Connection::open("db.sqlite").unwrap())); let mut server = DbServer::new(Db::new(Connection::open_in_memory().unwrap()));
let mut client = server.connection(); let mut client = server.connection();
spawn(async move { spawn(async move {
loop { loop {

Loading…
Cancel
Save