Include sample data and images.
2
Cargo.lock
generated
@ -764,7 +764,7 @@ dependencies = [
|
|||||||
|
|
||||||
[[package]]
|
[[package]]
|
||||||
name = "fuzzysearch"
|
name = "fuzzysearch"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
dependencies = [
|
dependencies = [
|
||||||
"async-stream",
|
"async-stream",
|
||||||
"bk-tree",
|
"bk-tree",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
[package]
|
[package]
|
||||||
name = "fuzzysearch"
|
name = "fuzzysearch"
|
||||||
version = "0.1.0"
|
version = "0.2.0"
|
||||||
authors = ["Syfaro <syfaro@huefox.com>"]
|
authors = ["Syfaro <syfaro@huefox.com>"]
|
||||||
edition = "2018"
|
edition = "2018"
|
||||||
|
|
||||||
|
@ -95,7 +95,12 @@ fn configure_tracing() {
|
|||||||
.with(fmt_layer);
|
.with(fmt_layer);
|
||||||
|
|
||||||
let exporter = opentelemetry_jaeger::Exporter::builder()
|
let exporter = opentelemetry_jaeger::Exporter::builder()
|
||||||
.with_agent_endpoint(std::env::var("JAEGER_COLLECTOR").unwrap().parse().unwrap())
|
.with_agent_endpoint(
|
||||||
|
std::env::var("JAEGER_COLLECTOR")
|
||||||
|
.expect("Missing JAEGER_COLLECTOR")
|
||||||
|
.parse()
|
||||||
|
.unwrap(),
|
||||||
|
)
|
||||||
.with_process(opentelemetry_jaeger::Process {
|
.with_process(opentelemetry_jaeger::Process {
|
||||||
service_name: "fuzzysearch".to_string(),
|
service_name: "fuzzysearch".to_string(),
|
||||||
tags: vec![
|
tags: vec![
|
||||||
|
@ -4,7 +4,7 @@ CREATE TABLE artist (
|
|||||||
);
|
);
|
||||||
|
|
||||||
CREATE TABLE submission (
|
CREATE TABLE submission (
|
||||||
id SERIAL PRIMARY KEY,
|
id INTEGER PRIMARY KEY,
|
||||||
artist_id INTEGER REFERENCES artist (id),
|
artist_id INTEGER REFERENCES artist (id),
|
||||||
hash BYTEA,
|
hash BYTEA,
|
||||||
hash_int BIGINT,
|
hash_int BIGINT,
|
||||||
|
71
tests/sample.sql
Normal file
BIN
tests/samples/1460136557.psychonautic_syfarore.png
Normal file
After Width: | Height: | Size: 117 KiB |
BIN
tests/samples/1467485464.oce_syfaro-sketch-web.jpg
Normal file
After Width: | Height: | Size: 261 KiB |
BIN
tests/samples/1473103034.casual-dhole_fylninsyf2__web_.png
Normal file
After Width: | Height: | Size: 328 KiB |
BIN
tests/samples/1568810406.kosseart_experimental-syfaro-fa.png
Normal file
After Width: | Height: | Size: 611 KiB |
BIN
tests/samples/273210894ab3d9f02f02742acead73a2.jpg
Normal file
After Width: | Height: | Size: 261 KiB |
BIN
tests/samples/EmbGP7hWEAEysaF.jpg large.jpg
Normal file
After Width: | Height: | Size: 156 KiB |
BIN
tests/samples/EmbGPKyWEAEi3JI.jpg large.jpg
Normal file
After Width: | Height: | Size: 262 KiB |
BIN
tests/samples/EmbGTypW8AA65r_.jpg large.jpg
Normal file
After Width: | Height: | Size: 147 KiB |