Compare commits

..

2 Commits

7 changed files with 11 additions and 11 deletions

10
Cargo.lock generated
View File

@ -2509,7 +2509,7 @@ checksum = "830d08ce1d1d941e6b30645f1a0eb5643013d835ce3779a5fc208261dbe10f55"
[[package]]
name = "letterbox"
version = "0.0.69"
version = "0.0.70"
dependencies = [
"build-info",
"build-info-build",
@ -3024,7 +3024,7 @@ dependencies = [
[[package]]
name = "notmuch"
version = "0.0.69"
version = "0.0.70"
dependencies = [
"itertools 0.10.5",
"log",
@ -3810,7 +3810,7 @@ dependencies = [
[[package]]
name = "procmail2notmuch"
version = "0.0.69"
version = "0.0.70"
dependencies = [
"anyhow",
]
@ -4782,7 +4782,7 @@ dependencies = [
[[package]]
name = "server"
version = "0.0.69"
version = "0.0.70"
dependencies = [
"ammonia",
"anyhow",
@ -4882,7 +4882,7 @@ dependencies = [
[[package]]
name = "shared"
version = "0.0.69"
version = "0.0.70"
dependencies = [
"build-info",
"notmuch",

View File

@ -1,6 +1,6 @@
[package]
name = "notmuch"
version = "0.0.69"
version = "0.0.70"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -1,6 +1,6 @@
[package]
name = "procmail2notmuch"
version = "0.0.69"
version = "0.0.70"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -1,6 +1,6 @@
[package]
name = "server"
version = "0.0.69"
version = "0.0.70"
edition = "2021"
default-run = "server"

View File

@ -583,12 +583,12 @@ impl Mutation {
#[instrument(skip_all)]
async fn refresh<'ctx>(&self, ctx: &Context<'ctx>) -> Result<bool, Error> {
let nm = ctx.data_unchecked::<Notmuch>();
info!("{}", String::from_utf8_lossy(&nm.new()?));
#[cfg(feature = "tantivy")]
{
let tantivy = ctx.data_unchecked::<TantivyConnection>();
let pool = ctx.data_unchecked::<PgPool>();
// TODO: parallelize
info!("{}", String::from_utf8_lossy(&nm.new()?));
tantivy.refresh(pool).await?;
}
Ok(true)

View File

@ -1,6 +1,6 @@
[package]
name = "shared"
version = "0.0.69"
version = "0.0.70"
edition = "2021"
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html

View File

@ -1,5 +1,5 @@
[package]
version = "0.0.69"
version = "0.0.70"
name = "letterbox"
repository = "https://github.com/seed-rs/seed-quickstart"
authors = ["Bill Thiede <git@xinu.tv>"]