mirror of
https://github.com/NotAShelf/stash.git
synced 2026-05-09 17:05:12 +00:00
stash: async db operations; make hashes deterministic
Signed-off-by: NotAShelf <raf@notashelf.dev> Change-Id: Iccc9980fa13a752e0e6c9fb630c28ba96a6a6964
This commit is contained in:
parent
7184c8b682
commit
95bf1766ce
6 changed files with 815 additions and 362 deletions
|
|
@ -228,7 +228,7 @@ fn main() -> color_eyre::eyre::Result<()> {
|
|||
}
|
||||
|
||||
let conn = rusqlite::Connection::open(&db_path)?;
|
||||
let db = db::SqliteClipboardDb::new(conn)?;
|
||||
let db = db::SqliteClipboardDb::new(conn, db_path)?;
|
||||
|
||||
match cli.command {
|
||||
Some(Command::Store) => {
|
||||
|
|
@ -476,7 +476,8 @@ fn main() -> color_eyre::eyre::Result<()> {
|
|||
&mime_type,
|
||||
cli.min_size,
|
||||
cli.max_size,
|
||||
);
|
||||
)
|
||||
.await;
|
||||
},
|
||||
|
||||
None => {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue