Skip to content

Commit

Permalink
fix bug
Browse files Browse the repository at this point in the history
  • Loading branch information
shanliu committed Apr 13, 2024
1 parent 10a6a6a commit 81fb348
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion server/examples/lsys-actix-web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ nanoid = "~0.4.0"

tempfile = { version = "3.10.1", optional = true }

image = { version = "0.24.9", default-features = false }
image = { version = "0.25.1", default-features = false }

[features]
default = ["docs", "barcode", "area"]
Expand Down
2 changes: 1 addition & 1 deletion server/lsys-lib-area/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ rayon = "~1.10.*"
flate2 = "~1.0.*"
rusqlite = { version = "~0.31.0", optional = true }
csv = { version = "~1.3.0", optional = true }
mysql = { version = "~24.0.0", optional = true }
mysql = { version = "~25.0.0", optional = true }
log = "~0.4.17"
#clap = "3.2.25"
parking_lot = "~0.12.1"
Expand Down
4 changes: 2 additions & 2 deletions server/lsys-lib-area/src/dao/area_code.rs
Original file line number Diff line number Diff line change
Expand Up @@ -328,9 +328,9 @@ impl<AP: AreaCodeProvider> AreaCode<AP> {
let out = top_docs
.into_par_iter()
.flat_map(|(source, doc_address)| {
if let Ok(retrieved_doc) = searcher.doc(doc_address) {
if let Ok(retrieved_doc) = searcher.doc::<TantivyDocument>(doc_address) {
if let Some(code) = retrieved_doc.get_first(self.tantivy_code_field) {
if let Some(code) = code.as_text() {
if let Some(code) = code.as_str() {
if let Ok(item) = self.find(code) {
if !item.is_empty() {
return Some(AreaSearchItem { item, source });
Expand Down
2 changes: 1 addition & 1 deletion server/lsys-web/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ lsys-lib-area = { version = "~0.1.0", default-features = false, features = [

lsys-docs = { path = "../lsys-docs", optional = true } #path 替换为 :,git = "https://github.com/shanliu/lsys"
lsys-app-barcode = { path = "../lsys-app-barcode", optional = true } #path 替换为 :,git = "https://github.com/shanliu/lsys"
image = { version = "0.24.9", default-features = false, optional = true }
image = { version = "0.25.1", default-features = false, optional = true }
base64 = { version = "~0.22.0", optional = true }

[features]
Expand Down

0 comments on commit 81fb348

Please sign in to comment.