[INFO] cloning repository https://github.com/jangjunha/orchestration-saga-example [INFO] running `Command { std: "git" "-c" "credential.helper=" "-c" "credential.helper=/workspace/cargo-home/bin/git-credential-null" "clone" "--bare" "https://github.com/jangjunha/orchestration-saga-example" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjangjunha%2Forchestration-saga-example", kill_on_drop: false }` [INFO] [stderr] Cloning into bare repository '/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjangjunha%2Forchestration-saga-example'... [INFO] running `Command { std: "git" "rev-parse" "HEAD", kill_on_drop: false }` [INFO] [stdout] 8cf607f1d5aef9ace6004d5d2bfb1ff44cf4f6f4 [INFO] checking jangjunha/orchestration-saga-example against try#95813608313bff49cfc1afc393a946a3c085b772 for pr-148946 [INFO] running `Command { std: "git" "clone" "/workspace/cache/git-repos/https%3A%2F%2Fgithub.com%2Fjangjunha%2Forchestration-saga-example" "/workspace/builds/worker-2-tc2/source", kill_on_drop: false }` [INFO] [stderr] Cloning into '/workspace/builds/worker-2-tc2/source'... [INFO] [stderr] done. [INFO] started tweaking git repo https://github.com/jangjunha/orchestration-saga-example [INFO] finished tweaking git repo https://github.com/jangjunha/orchestration-saga-example [INFO] tweaked toml for git repo https://github.com/jangjunha/orchestration-saga-example written to /workspace/builds/worker-2-tc2/source/Cargo.toml [INFO] validating manifest of git repo https://github.com/jangjunha/orchestration-saga-example on toolchain 95813608313bff49cfc1afc393a946a3c085b772 [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+95813608313bff49cfc1afc393a946a3c085b772" "metadata" "--manifest-path" "Cargo.toml" "--no-deps", kill_on_drop: false }` [INFO] crate git repo https://github.com/jangjunha/orchestration-saga-example already has a lockfile, it will not be regenerated [INFO] running `Command { std: CARGO_HOME="/workspace/cargo-home" RUSTUP_HOME="/workspace/rustup-home" "/workspace/cargo-home/bin/cargo" "+95813608313bff49cfc1afc393a946a3c085b772" "fetch" "--manifest-path" "Cargo.toml", kill_on_drop: false }` [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+95813608313bff49cfc1afc393a946a3c085b772" "metadata" "--no-deps" "--format-version=1", kill_on_drop: false }` [INFO] [stdout] f3a687e56bb0a854dff51c72b7a1f333446fc1e134e7aa048a420d94185906a2 [INFO] running `Command { std: "docker" "start" "-a" "f3a687e56bb0a854dff51c72b7a1f333446fc1e134e7aa048a420d94185906a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "inspect" "f3a687e56bb0a854dff51c72b7a1f333446fc1e134e7aa048a420d94185906a2", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "f3a687e56bb0a854dff51c72b7a1f333446fc1e134e7aa048a420d94185906a2", kill_on_drop: false }` [INFO] [stdout] f3a687e56bb0a854dff51c72b7a1f333446fc1e134e7aa048a420d94185906a2 [INFO] running `Command { std: "docker" "create" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/target:/opt/rustwide/target:rw,Z" "-v" "/var/lib/crater-agent-workspace/builds/worker-2-tc2/source:/opt/rustwide/workdir:ro,Z" "-v" "/var/lib/crater-agent-workspace/cargo-home:/opt/rustwide/cargo-home:ro,Z" "-v" "/var/lib/crater-agent-workspace/rustup-home:/opt/rustwide/rustup-home:ro,Z" "-e" "SOURCE_DIR=/opt/rustwide/workdir" "-e" "CARGO_TARGET_DIR=/opt/rustwide/target" "-e" "CARGO_INCREMENTAL=0" "-e" "RUST_BACKTRACE=full" "-e" "RUSTFLAGS=--cap-lints=forbid" "-e" "RUSTDOCFLAGS=--cap-lints=forbid" "-e" "CARGO_HOME=/opt/rustwide/cargo-home" "-e" "RUSTUP_HOME=/opt/rustwide/rustup-home" "-w" "/opt/rustwide/workdir" "-m" "1610612736" "--user" "0:0" "--network" "none" "ghcr.io/rust-lang/crates-build-env/linux@sha256:4848fb76d95f26979359cc7e45710b1dbc8f3acb7aeedee7c460d7702230f228" "/opt/rustwide/cargo-home/bin/cargo" "+95813608313bff49cfc1afc393a946a3c085b772" "check" "--frozen" "--all" "--all-targets" "--message-format=json", kill_on_drop: false }` [INFO] [stdout] 310ae03dd9ac5cd968664c1106b268718e4f038d24161903ee8b22a7b90c0d0b [INFO] running `Command { std: "docker" "start" "-a" "310ae03dd9ac5cd968664c1106b268718e4f038d24161903ee8b22a7b90c0d0b", kill_on_drop: false }` [INFO] [stderr] Compiling proc-macro2 v1.0.95 [INFO] [stderr] Compiling libc v0.2.174 [INFO] [stderr] Checking cfg-if v1.0.1 [INFO] [stderr] Compiling serde v1.0.219 [INFO] [stderr] Compiling autocfg v1.5.0 [INFO] [stderr] Checking pin-project-lite v0.2.16 [INFO] [stderr] Checking bytes v1.10.1 [INFO] [stderr] Checking memchr v2.7.5 [INFO] [stderr] Checking futures-core v0.3.31 [INFO] [stderr] Checking itoa v1.0.15 [INFO] [stderr] Checking smallvec v1.15.1 [INFO] [stderr] Compiling parking_lot_core v0.9.11 [INFO] [stderr] Checking futures-sink v0.3.31 [INFO] [stderr] Compiling getrandom v0.3.3 [INFO] [stderr] Compiling typenum v1.18.0 [INFO] [stderr] Compiling version_check v0.9.5 [INFO] [stderr] Checking futures-task v0.3.31 [INFO] [stderr] Checking futures-io v0.3.31 [INFO] [stderr] Checking pin-utils v0.1.0 [INFO] [stderr] Checking slab v0.4.10 [INFO] [stderr] Checking futures-channel v0.3.31 [INFO] [stderr] Compiling equivalent v1.0.2 [INFO] [stderr] Compiling hashbrown v0.15.4 [INFO] [stderr] Compiling zerocopy v0.8.26 [INFO] [stderr] Checking log v0.4.27 [INFO] [stderr] Checking subtle v2.6.1 [INFO] [stderr] Checking ryu v1.0.20 [INFO] [stderr] Compiling serde_json v1.0.140 [INFO] [stderr] Compiling lock_api v0.4.13 [INFO] [stderr] Compiling num-traits v0.2.19 [INFO] [stderr] Checking once_cell v1.21.3 [INFO] [stderr] Compiling libm v0.2.15 [INFO] [stderr] Compiling generic-array v0.14.7 [INFO] [stderr] Checking tinyvec_macros v0.1.1 [INFO] [stderr] Compiling bigdecimal v0.4.8 [INFO] [stderr] Checking tinyvec v1.9.0 [INFO] [stderr] Compiling rustversion v1.0.21 [INFO] [stderr] Compiling pkg-config v0.3.32 [INFO] [stderr] Compiling indexmap v2.10.0 [INFO] [stderr] Compiling pq-sys v0.4.8 [INFO] [stderr] Compiling shlex v1.3.0 [INFO] [stderr] Checking tracing-core v0.1.34 [INFO] [stderr] Checking iana-time-zone v0.1.63 [INFO] [stderr] Compiling cc v1.2.27 [INFO] [stderr] Checking cpufeatures v0.2.17 [INFO] [stderr] Checking unicode-properties v0.1.3 [INFO] [stderr] Compiling vcpkg v0.2.15 [INFO] [stderr] Checking unicode-bidi v0.3.18 [INFO] [stderr] Compiling winnow v0.7.11 [INFO] [stderr] Checking socket2 v0.5.10 [INFO] [stderr] Compiling quote v1.0.40 [INFO] [stderr] Checking mio v1.0.4 [INFO] [stderr] Checking parking_lot v0.12.4 [INFO] [stderr] Checking signal-hook-registry v1.4.5 [INFO] [stderr] Checking rand_core v0.9.3 [INFO] [stderr] Compiling syn v2.0.104 [INFO] [stderr] Checking unicode-normalization v0.1.24 [INFO] [stderr] Checking bitflags v2.9.1 [INFO] [stderr] Checking fallible-iterator v0.2.0 [INFO] [stderr] Compiling winnow v0.5.40 [INFO] [stderr] Checking siphasher v1.0.1 [INFO] [stderr] Checking base64 v0.22.1 [INFO] [stderr] Compiling anyhow v1.0.98 [INFO] [stderr] Checking phf_shared v0.11.3 [INFO] [stderr] Checking num-integer v0.1.46 [INFO] [stderr] Checking fnv v1.0.7 [INFO] [stderr] Checking http v1.3.1 [INFO] [stderr] Checking anstyle-parse v0.2.7 [INFO] [stderr] Checking phf v0.11.3 [INFO] [stderr] Compiling rdkafka-sys v4.8.0+2.3.0 [INFO] [stderr] Checking colorchoice v1.0.4 [INFO] [stderr] Checking anstyle v1.0.11 [INFO] [stderr] Checking anstyle-query v1.1.3 [INFO] [stderr] Checking whoami v1.6.0 [INFO] [stderr] Checking stringprep v0.1.5 [INFO] [stderr] Checking tower-service v0.3.3 [INFO] [stderr] Checking clap_lex v0.7.5 [INFO] [stderr] Checking overload v0.1.1 [INFO] [stderr] Checking anstream v0.6.19 [INFO] [stderr] Checking sharded-slab v0.1.7 [INFO] [stderr] Checking nu-ansi-term v0.46.0 [INFO] [stderr] Checking num-bigint v0.4.6 [INFO] [stderr] Checking tracing-log v0.2.0 [INFO] [stderr] Checking scoped-futures v0.1.4 [INFO] [stderr] Checking thread_local v1.1.9 [INFO] [stderr] Checking block-buffer v0.10.4 [INFO] [stderr] Checking crypto-common v0.1.6 [INFO] [stderr] Checking clap_builder v4.5.40 [INFO] [stderr] Compiling httparse v1.10.1 [INFO] [stderr] Checking tower-layer v0.3.3 [INFO] [stderr] Checking getrandom v0.2.16 [INFO] [stderr] Checking digest v0.10.7 [INFO] [stderr] Checking sync_wrapper v1.0.2 [INFO] [stderr] Checking httpdate v1.0.3 [INFO] [stderr] Compiling libz-sys v1.1.22 [INFO] [stderr] Checking rand_core v0.6.4 [INFO] [stderr] Checking sha2 v0.10.9 [INFO] [stderr] Checking md-5 v0.10.6 [INFO] [stderr] Checking hmac v0.12.1 [INFO] [stderr] Checking form_urlencoded v1.2.1 [INFO] [stderr] Checking mime v0.3.17 [INFO] [stderr] Checking tracing-subscriber v0.3.19 [INFO] [stderr] Checking matchit v0.7.3 [INFO] [stderr] Checking http-body v1.0.1 [INFO] [stderr] Checking http-body-util v0.1.3 [INFO] [stderr] Checking tower-http v0.5.2 [INFO] [stderr] Checking ppv-lite86 v0.2.21 [INFO] [stderr] Checking rand_chacha v0.9.0 [INFO] [stderr] Checking rand_chacha v0.3.1 [INFO] [stderr] Checking rand v0.9.1 [INFO] [stderr] Checking rand v0.8.5 [INFO] [stderr] Checking postgres-protocol v0.6.8 [INFO] [stderr] Checking postgres-types v0.2.9 [INFO] [stderr] Compiling diesel_table_macro_syntax v0.1.0 [INFO] [stderr] Compiling serde_derive v1.0.219 [INFO] [stderr] Compiling tokio-macros v2.5.0 [INFO] [stderr] Compiling futures-macro v0.3.31 [INFO] [stderr] Compiling async-trait v0.1.88 [INFO] [stderr] Compiling diesel_derives v2.1.4 [INFO] [stderr] Compiling tracing-attributes v0.1.30 [INFO] [stderr] Compiling clap_derive v4.5.40 [INFO] [stderr] Checking tokio v1.46.0 [INFO] [stderr] Checking futures-util v0.3.31 [INFO] [stderr] Checking tracing v0.1.41 [INFO] [stderr] Checking tower v0.4.13 [INFO] [stderr] Checking clap v4.5.40 [INFO] [stderr] Checking futures-executor v0.3.31 [INFO] [stderr] Checking futures v0.3.31 [INFO] [stderr] Checking axum-core v0.4.5 [INFO] [stderr] Checking uuid v1.17.0 [INFO] [stderr] Checking chrono v0.4.41 [INFO] [stderr] Checking serde_spanned v0.6.9 [INFO] [stderr] Checking toml_datetime v0.6.11 [INFO] [stderr] Checking toml_edit v0.19.15 [INFO] [stderr] Checking serde_path_to_error v0.1.17 [INFO] [stderr] Checking tokio-util v0.7.15 [INFO] [stderr] Checking bb8 v0.8.6 [INFO] [stderr] Checking hyper v1.6.0 [INFO] [stderr] Checking tower v0.5.2 [INFO] [stderr] Checking tokio-postgres v0.7.13 [INFO] [stderr] Checking serde_urlencoded v0.7.1 [INFO] [stderr] Checking hyper-util v0.1.14 [INFO] [stderr] Compiling toml_edit v0.22.27 [INFO] [stderr] Checking axum v0.7.9 [INFO] [stderr] Checking diesel v2.1.6 [INFO] [stderr] Checking toml v0.7.8 [INFO] [stderr] Checking migrations_internals v2.1.0 [INFO] [stderr] Checking bb8-postgres v0.8.1 [INFO] [stderr] Compiling proc-macro-crate v3.3.0 [INFO] [stderr] Compiling num_enum_derive v0.7.4 [INFO] [stderr] Compiling migrations_macros v2.1.0 [INFO] [stderr] Checking num_enum v0.7.4 [INFO] [stderr] Checking rdkafka v0.34.0 [INFO] [stderr] Checking diesel_migrations v2.1.0 [INFO] [stderr] Checking shared v0.1.0 (/opt/rustwide/workdir/shared) [INFO] [stderr] Checking diesel-async v0.4.1 [INFO] [stderr] Checking order-service v0.1.0 (/opt/rustwide/workdir/order-service) [INFO] [stderr] Checking inventory-service v0.1.0 (/opt/rustwide/workdir/inventory-service) [INFO] [stderr] Checking payment-service v0.1.0 (/opt/rustwide/workdir/payment-service) [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> inventory-service/src/handlers.rs:98:14 [INFO] [stdout] | [INFO] [stdout] 98 | .first::(conn) [INFO] [stdout] | ^^^^^ multiple `first` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 95 ~ let existing_reservation = diesel_async::RunQueryDsl::first(reservations::table [INFO] [stdout] 96 + .filter(reservations::order_id.eq(inventory_data.order_id)) [INFO] [stdout] 97 + .filter(reservations::product_id.eq(inventory_data.product_id)), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 95 ~ let existing_reservation = diesel::RunQueryDsl::first(reservations::table [INFO] [stdout] 96 + .filter(reservations::order_id.eq(inventory_data.order_id)) [INFO] [stdout] 97 + .filter(reservations::product_id.eq(inventory_data.product_id)), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> inventory-service/src/handlers.rs:95:36 [INFO] [stdout] | [INFO] [stdout] 95 | let existing_reservation = reservations::table [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 96 | | .filter(reservations::order_id.eq(inventory_data.order_id)) [INFO] [stdout] 97 | | .filter(reservations::product_id.eq(inventory_data.product_id)) [INFO] [stdout] 98 | | .first::(conn) [INFO] [stdout] 99 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> inventory-service/src/handlers.rs:114:14 [INFO] [stdout] | [INFO] [stdout] 114 | .first::(conn) [INFO] [stdout] | ^^^^^ multiple `first` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 112 ~ let inventory_item = diesel_async::RunQueryDsl::first(inventory::table [INFO] [stdout] 113 + .filter(inventory::product_id.eq(inventory_data.product_id)), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 112 ~ let inventory_item = diesel::RunQueryDsl::first(inventory::table [INFO] [stdout] 113 + .filter(inventory::product_id.eq(inventory_data.product_id)), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> inventory-service/src/handlers.rs:112:30 [INFO] [stdout] | [INFO] [stdout] 112 | let inventory_item = inventory::table [INFO] [stdout] | ______________________________^ [INFO] [stdout] 113 | | .filter(inventory::product_id.eq(inventory_data.product_id)) [INFO] [stdout] 114 | | .first::(conn) [INFO] [stdout] 115 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> inventory-service/src/handlers.rs:144:22 [INFO] [stdout] | [INFO] [stdout] 144 | .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `UpdateStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 139 ~ diesel_async::RunQueryDsl::execute(diesel::update(inventory::table.filter(inventory::product_id.eq(inventory_data.product_id))) [INFO] [stdout] 140 + .set(( [INFO] [stdout] 141 + inventory::available_quantity.eq(inventory::available_quantity - inventory_data.quantity), [INFO] [stdout] 142 + inventory::reserved_quantity.eq(inventory::reserved_quantity + inventory_data.quantity), [INFO] [stdout] 143 + )), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 139 ~ diesel::RunQueryDsl::execute(diesel::update(inventory::table.filter(inventory::product_id.eq(inventory_data.product_id))) [INFO] [stdout] 140 + .set(( [INFO] [stdout] 141 + inventory::available_quantity.eq(inventory::available_quantity - inventory_data.quantity), [INFO] [stdout] 142 + inventory::reserved_quantity.eq(inventory::reserved_quantity + inventory_data.quantity), [INFO] [stdout] 143 + )), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> inventory-service/src/handlers.rs:157:22 [INFO] [stdout] | [INFO] [stdout] 157 | .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `InsertStatement` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 155 ~ diesel::RunQueryDsl::execute(diesel::insert_into(reservations::table) [INFO] [stdout] 156 + .values(&new_reservation), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 155 ~ diesel_async::RunQueryDsl::execute(diesel::insert_into(reservations::table) [INFO] [stdout] 156 + .values(&new_reservation), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> inventory-service/src/handlers.rs:177:14 [INFO] [stdout] | [INFO] [stdout] 177 | .first::(conn) [INFO] [stdout] | ^^^^^ multiple `first` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 174 ~ let reservation = diesel_async::RunQueryDsl::first(reservations::table [INFO] [stdout] 175 + .filter(reservations::order_id.eq(inventory_data.order_id)) [INFO] [stdout] 176 + .filter(reservations::product_id.eq(inventory_data.product_id)), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 174 ~ let reservation = diesel::RunQueryDsl::first(reservations::table [INFO] [stdout] 175 + .filter(reservations::order_id.eq(inventory_data.order_id)) [INFO] [stdout] 176 + .filter(reservations::product_id.eq(inventory_data.product_id)), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> inventory-service/src/handlers.rs:174:27 [INFO] [stdout] | [INFO] [stdout] 174 | let reservation = reservations::table [INFO] [stdout] | ___________________________^ [INFO] [stdout] 175 | | .filter(reservations::order_id.eq(inventory_data.order_id)) [INFO] [stdout] 176 | | .filter(reservations::product_id.eq(inventory_data.product_id)) [INFO] [stdout] 177 | | .first::(conn) [INFO] [stdout] 178 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> inventory-service/src/handlers.rs:187:66 [INFO] [stdout] | [INFO] [stdout] 187 | ... inventory::available_quantity.eq(inventory::available_quantity + reservation.quantity), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `available_quantity`, found `Add` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `schema::inventory::columns::available_quantity` [INFO] [stdout] found struct `diesel::expression::ops::numeric::Add` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> inventory-service/src/handlers.rs:188:65 [INFO] [stdout] | [INFO] [stdout] 188 | ... inventory::reserved_quantity.eq(inventory::reserved_quantity - reservation.quantity), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `reserved_quantity`, found `Sub` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `schema::inventory::columns::reserved_quantity` [INFO] [stdout] found struct `diesel::expression::ops::numeric::Sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> inventory-service/src/handlers.rs:190:30 [INFO] [stdout] | [INFO] [stdout] 190 | ... .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `UpdateStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 185 ~ diesel_async::RunQueryDsl::execute(diesel::update(inventory::table.filter(inventory::product_id.eq(inventory_data.product_id))) [INFO] [stdout] 186 + .set(( [INFO] [stdout] 187 + inventory::available_quantity.eq(inventory::available_quantity + reservation.quantity), [INFO] [stdout] 188 + inventory::reserved_quantity.eq(inventory::reserved_quantity - reservation.quantity), [INFO] [stdout] 189 + )), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 185 ~ diesel::RunQueryDsl::execute(diesel::update(inventory::table.filter(inventory::product_id.eq(inventory_data.product_id))) [INFO] [stdout] 186 + .set(( [INFO] [stdout] 187 + inventory::available_quantity.eq(inventory::available_quantity + reservation.quantity), [INFO] [stdout] 188 + inventory::reserved_quantity.eq(inventory::reserved_quantity - reservation.quantity), [INFO] [stdout] 189 + )), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> payment-service/src/handlers.rs:98:14 [INFO] [stdout] | [INFO] [stdout] 98 | .first::(conn) [INFO] [stdout] | ^^^^^ multiple `first` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 96 ~ let existing_payment = diesel_async::RunQueryDsl::first(payments::table [INFO] [stdout] 97 + .filter(payments::order_id.eq(payment_data.order_id)), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 96 ~ let existing_payment = diesel::RunQueryDsl::first(payments::table [INFO] [stdout] 97 + .filter(payments::order_id.eq(payment_data.order_id)), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> payment-service/src/handlers.rs:96:32 [INFO] [stdout] | [INFO] [stdout] 96 | let existing_payment = payments::table [INFO] [stdout] | ________________________________^ [INFO] [stdout] 97 | | .filter(payments::order_id.eq(payment_data.order_id)) [INFO] [stdout] 98 | | .first::(conn) [INFO] [stdout] 99 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> payment-service/src/handlers.rs:133:14 [INFO] [stdout] | [INFO] [stdout] 133 | .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `InsertStatement` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 131 ~ diesel::RunQueryDsl::execute(diesel::insert_into(payments::table) [INFO] [stdout] 132 + .values(&new_payment), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 131 ~ diesel_async::RunQueryDsl::execute(diesel::insert_into(payments::table) [INFO] [stdout] 132 + .values(&new_payment), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> inventory-service/src/handlers.rs:216:14 [INFO] [stdout] | [INFO] [stdout] 216 | .first::(conn) [INFO] [stdout] | ^^^^^ multiple `first` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 214 ~ let result = diesel_async::RunQueryDsl::first(processed_commands::table [INFO] [stdout] 215 + .filter(processed_commands::idempotency_key.eq(key)), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 214 ~ let result = diesel::RunQueryDsl::first(processed_commands::table [INFO] [stdout] 215 + .filter(processed_commands::idempotency_key.eq(key)), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> inventory-service/src/handlers.rs:214:22 [INFO] [stdout] | [INFO] [stdout] 214 | let result = processed_commands::table [INFO] [stdout] | ______________________^ [INFO] [stdout] 215 | | .filter(processed_commands::idempotency_key.eq(key)) [INFO] [stdout] 216 | | .first::(conn) [INFO] [stdout] 217 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> inventory-service/src/handlers.rs:232:14 [INFO] [stdout] | [INFO] [stdout] 232 | .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `InsertStatement` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 230 ~ diesel::RunQueryDsl::execute(diesel::insert_into(processed_commands::table) [INFO] [stdout] 231 + .values(&processed_command), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 230 ~ diesel_async::RunQueryDsl::execute(diesel::insert_into(processed_commands::table) [INFO] [stdout] 231 + .values(&processed_command), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> payment-service/src/handlers.rs:148:14 [INFO] [stdout] | [INFO] [stdout] 148 | .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `UpdateStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 146 ~ let updated_rows = diesel_async::RunQueryDsl::execute(diesel::update(payments::table.filter(payments::order_id.eq(payment_data.order_id))) [INFO] [stdout] 147 + .set(payments::status.eq("refunded")), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 146 ~ let updated_rows = diesel::RunQueryDsl::execute(diesel::update(payments::table.filter(payments::order_id.eq(payment_data.order_id))) [INFO] [stdout] 147 + .set(payments::status.eq("refunded")), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> payment-service/src/handlers.rs:165:14 [INFO] [stdout] | [INFO] [stdout] 165 | .first::(conn) [INFO] [stdout] | ^^^^^ multiple `first` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 163 ~ let result = diesel_async::RunQueryDsl::first(processed_commands::table [INFO] [stdout] 164 + .filter(processed_commands::idempotency_key.eq(key)), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 163 ~ let result = diesel::RunQueryDsl::first(processed_commands::table [INFO] [stdout] 164 + .filter(processed_commands::idempotency_key.eq(key)), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> payment-service/src/handlers.rs:163:22 [INFO] [stdout] | [INFO] [stdout] 163 | let result = processed_commands::table [INFO] [stdout] | ______________________^ [INFO] [stdout] 164 | | .filter(processed_commands::idempotency_key.eq(key)) [INFO] [stdout] 165 | | .first::(conn) [INFO] [stdout] 166 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> payment-service/src/handlers.rs:181:14 [INFO] [stdout] | [INFO] [stdout] 181 | .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `InsertStatement` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 179 ~ diesel::RunQueryDsl::execute(diesel::insert_into(processed_commands::table) [INFO] [stdout] 180 + .values(&processed_command), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 179 ~ diesel_async::RunQueryDsl::execute(diesel::insert_into(processed_commands::table) [INFO] [stdout] 180 + .values(&processed_command), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> inventory-service/src/handlers.rs:98:14 [INFO] [stdout] | [INFO] [stdout] 98 | .first::(conn) [INFO] [stdout] | ^^^^^ multiple `first` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 95 ~ let existing_reservation = diesel_async::RunQueryDsl::first(reservations::table [INFO] [stdout] 96 + .filter(reservations::order_id.eq(inventory_data.order_id)) [INFO] [stdout] 97 + .filter(reservations::product_id.eq(inventory_data.product_id)), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 95 ~ let existing_reservation = diesel::RunQueryDsl::first(reservations::table [INFO] [stdout] 96 + .filter(reservations::order_id.eq(inventory_data.order_id)) [INFO] [stdout] 97 + .filter(reservations::product_id.eq(inventory_data.product_id)), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> payment-service/src/handlers.rs:98:14 [INFO] [stdout] | [INFO] [stdout] 98 | .first::(conn) [INFO] [stdout] | ^^^^^ multiple `first` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 96 ~ let existing_payment = diesel_async::RunQueryDsl::first(payments::table [INFO] [stdout] 97 + .filter(payments::order_id.eq(payment_data.order_id)), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 96 ~ let existing_payment = diesel::RunQueryDsl::first(payments::table [INFO] [stdout] 97 + .filter(payments::order_id.eq(payment_data.order_id)), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> payment-service/src/handlers.rs:96:32 [INFO] [stdout] | [INFO] [stdout] 96 | let existing_payment = payments::table [INFO] [stdout] | ________________________________^ [INFO] [stdout] 97 | | .filter(payments::order_id.eq(payment_data.order_id)) [INFO] [stdout] 98 | | .first::(conn) [INFO] [stdout] 99 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> payment-service/src/handlers.rs:133:14 [INFO] [stdout] | [INFO] [stdout] 133 | .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `InsertStatement` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 131 ~ diesel::RunQueryDsl::execute(diesel::insert_into(payments::table) [INFO] [stdout] 132 + .values(&new_payment), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 131 ~ diesel_async::RunQueryDsl::execute(diesel::insert_into(payments::table) [INFO] [stdout] 132 + .values(&new_payment), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> payment-service/src/handlers.rs:148:14 [INFO] [stdout] | [INFO] [stdout] 148 | .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `UpdateStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 146 ~ let updated_rows = diesel_async::RunQueryDsl::execute(diesel::update(payments::table.filter(payments::order_id.eq(payment_data.order_id))) [INFO] [stdout] 147 + .set(payments::status.eq("refunded")), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 146 ~ let updated_rows = diesel::RunQueryDsl::execute(diesel::update(payments::table.filter(payments::order_id.eq(payment_data.order_id))) [INFO] [stdout] 147 + .set(payments::status.eq("refunded")), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> payment-service/src/handlers.rs:165:14 [INFO] [stdout] | [INFO] [stdout] 165 | .first::(conn) [INFO] [stdout] | ^^^^^ multiple `first` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 163 ~ let result = diesel_async::RunQueryDsl::first(processed_commands::table [INFO] [stdout] 164 + .filter(processed_commands::idempotency_key.eq(key)), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 163 ~ let result = diesel::RunQueryDsl::first(processed_commands::table [INFO] [stdout] 164 + .filter(processed_commands::idempotency_key.eq(key)), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> payment-service/src/handlers.rs:163:22 [INFO] [stdout] | [INFO] [stdout] 163 | let result = processed_commands::table [INFO] [stdout] | ______________________^ [INFO] [stdout] 164 | | .filter(processed_commands::idempotency_key.eq(key)) [INFO] [stdout] 165 | | .first::(conn) [INFO] [stdout] 166 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> inventory-service/src/handlers.rs:95:36 [INFO] [stdout] | [INFO] [stdout] 95 | let existing_reservation = reservations::table [INFO] [stdout] | ____________________________________^ [INFO] [stdout] 96 | | .filter(reservations::order_id.eq(inventory_data.order_id)) [INFO] [stdout] 97 | | .filter(reservations::product_id.eq(inventory_data.product_id)) [INFO] [stdout] 98 | | .first::(conn) [INFO] [stdout] 99 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> inventory-service/src/handlers.rs:114:14 [INFO] [stdout] | [INFO] [stdout] 114 | .first::(conn) [INFO] [stdout] | ^^^^^ multiple `first` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 112 ~ let inventory_item = diesel_async::RunQueryDsl::first(inventory::table [INFO] [stdout] 113 + .filter(inventory::product_id.eq(inventory_data.product_id)), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 112 ~ let inventory_item = diesel::RunQueryDsl::first(inventory::table [INFO] [stdout] 113 + .filter(inventory::product_id.eq(inventory_data.product_id)), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> payment-service/src/handlers.rs:181:14 [INFO] [stdout] | [INFO] [stdout] 181 | .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `InsertStatement` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 179 ~ diesel::RunQueryDsl::execute(diesel::insert_into(processed_commands::table) [INFO] [stdout] 180 + .values(&processed_command), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 179 ~ diesel_async::RunQueryDsl::execute(diesel::insert_into(processed_commands::table) [INFO] [stdout] 180 + .values(&processed_command), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> inventory-service/src/handlers.rs:112:30 [INFO] [stdout] | [INFO] [stdout] 112 | let inventory_item = inventory::table [INFO] [stdout] | ______________________________^ [INFO] [stdout] 113 | | .filter(inventory::product_id.eq(inventory_data.product_id)) [INFO] [stdout] 114 | | .first::(conn) [INFO] [stdout] 115 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> inventory-service/src/handlers.rs:144:22 [INFO] [stdout] | [INFO] [stdout] 144 | .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `UpdateStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 139 ~ diesel_async::RunQueryDsl::execute(diesel::update(inventory::table.filter(inventory::product_id.eq(inventory_data.product_id))) [INFO] [stdout] 140 + .set(( [INFO] [stdout] 141 + inventory::available_quantity.eq(inventory::available_quantity - inventory_data.quantity), [INFO] [stdout] 142 + inventory::reserved_quantity.eq(inventory::reserved_quantity + inventory_data.quantity), [INFO] [stdout] 143 + )), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 139 ~ diesel::RunQueryDsl::execute(diesel::update(inventory::table.filter(inventory::product_id.eq(inventory_data.product_id))) [INFO] [stdout] 140 + .set(( [INFO] [stdout] 141 + inventory::available_quantity.eq(inventory::available_quantity - inventory_data.quantity), [INFO] [stdout] 142 + inventory::reserved_quantity.eq(inventory::reserved_quantity + inventory_data.quantity), [INFO] [stdout] 143 + )), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> inventory-service/src/handlers.rs:157:22 [INFO] [stdout] | [INFO] [stdout] 157 | .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `InsertStatement` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 155 ~ diesel::RunQueryDsl::execute(diesel::insert_into(reservations::table) [INFO] [stdout] 156 + .values(&new_reservation), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 155 ~ diesel_async::RunQueryDsl::execute(diesel::insert_into(reservations::table) [INFO] [stdout] 156 + .values(&new_reservation), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> inventory-service/src/handlers.rs:177:14 [INFO] [stdout] | [INFO] [stdout] 177 | .first::(conn) [INFO] [stdout] | ^^^^^ multiple `first` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 174 ~ let reservation = diesel_async::RunQueryDsl::first(reservations::table [INFO] [stdout] 175 + .filter(reservations::order_id.eq(inventory_data.order_id)) [INFO] [stdout] 176 + .filter(reservations::product_id.eq(inventory_data.product_id)), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 174 ~ let reservation = diesel::RunQueryDsl::first(reservations::table [INFO] [stdout] 175 + .filter(reservations::order_id.eq(inventory_data.order_id)) [INFO] [stdout] 176 + .filter(reservations::product_id.eq(inventory_data.product_id)), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> inventory-service/src/handlers.rs:174:27 [INFO] [stdout] | [INFO] [stdout] 174 | let reservation = reservations::table [INFO] [stdout] | ___________________________^ [INFO] [stdout] 175 | | .filter(reservations::order_id.eq(inventory_data.order_id)) [INFO] [stdout] 176 | | .filter(reservations::product_id.eq(inventory_data.product_id)) [INFO] [stdout] 177 | | .first::(conn) [INFO] [stdout] 178 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> inventory-service/src/handlers.rs:187:66 [INFO] [stdout] | [INFO] [stdout] 187 | ... inventory::available_quantity.eq(inventory::available_quantity + reservation.quantity), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `available_quantity`, found `Add` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `schema::inventory::columns::available_quantity` [INFO] [stdout] found struct `diesel::expression::ops::numeric::Add` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0308]: mismatched types [INFO] [stdout] --> inventory-service/src/handlers.rs:188:65 [INFO] [stdout] | [INFO] [stdout] 188 | ... inventory::reserved_quantity.eq(inventory::reserved_quantity - reservation.quantity), [INFO] [stdout] | ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ expected `reserved_quantity`, found `Sub` [INFO] [stdout] | [INFO] [stdout] = note: expected struct `schema::inventory::columns::reserved_quantity` [INFO] [stdout] found struct `diesel::expression::ops::numeric::Sub` [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> inventory-service/src/handlers.rs:190:30 [INFO] [stdout] | [INFO] [stdout] 190 | ... .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `UpdateStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 185 ~ diesel_async::RunQueryDsl::execute(diesel::update(inventory::table.filter(inventory::product_id.eq(inventory_data.product_id))) [INFO] [stdout] 186 + .set(( [INFO] [stdout] 187 + inventory::available_quantity.eq(inventory::available_quantity + reservation.quantity), [INFO] [stdout] 188 + inventory::reserved_quantity.eq(inventory::reserved_quantity - reservation.quantity), [INFO] [stdout] 189 + )), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 185 ~ diesel::RunQueryDsl::execute(diesel::update(inventory::table.filter(inventory::product_id.eq(inventory_data.product_id))) [INFO] [stdout] 186 + .set(( [INFO] [stdout] 187 + inventory::available_quantity.eq(inventory::available_quantity + reservation.quantity), [INFO] [stdout] 188 + inventory::reserved_quantity.eq(inventory::reserved_quantity - reservation.quantity), [INFO] [stdout] 189 + )), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> inventory-service/src/handlers.rs:216:14 [INFO] [stdout] | [INFO] [stdout] 216 | .first::(conn) [INFO] [stdout] | ^^^^^ multiple `first` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 214 ~ let result = diesel_async::RunQueryDsl::first(processed_commands::table [INFO] [stdout] 215 + .filter(processed_commands::idempotency_key.eq(key)), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 214 ~ let result = diesel::RunQueryDsl::first(processed_commands::table [INFO] [stdout] 215 + .filter(processed_commands::idempotency_key.eq(key)), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> inventory-service/src/handlers.rs:214:22 [INFO] [stdout] | [INFO] [stdout] 214 | let result = processed_commands::table [INFO] [stdout] | ______________________^ [INFO] [stdout] 215 | | .filter(processed_commands::idempotency_key.eq(key)) [INFO] [stdout] 216 | | .first::(conn) [INFO] [stdout] 217 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> inventory-service/src/handlers.rs:232:14 [INFO] [stdout] | [INFO] [stdout] 232 | .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `InsertStatement` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 230 ~ diesel::RunQueryDsl::execute(diesel::insert_into(processed_commands::table) [INFO] [stdout] 231 + .values(&processed_command), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 230 ~ diesel_async::RunQueryDsl::execute(diesel::insert_into(processed_commands::table) [INFO] [stdout] 231 + .values(&processed_command), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> order-service/src/handlers.rs:111:22 [INFO] [stdout] | [INFO] [stdout] 111 | .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `InsertStatement` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 109 ~ diesel::RunQueryDsl::execute(diesel::insert_into(orders::table) [INFO] [stdout] 110 + .values(&new_order), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 109 ~ diesel_async::RunQueryDsl::execute(diesel::insert_into(orders::table) [INFO] [stdout] 110 + .values(&new_order), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> order-service/src/handlers.rs:123:22 [INFO] [stdout] | [INFO] [stdout] 123 | .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `InsertStatement` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 121 ~ diesel::RunQueryDsl::execute(diesel::insert_into(outbox_events::table) [INFO] [stdout] 122 + .values(&outbox_event), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 121 ~ diesel_async::RunQueryDsl::execute(diesel::insert_into(outbox_events::table) [INFO] [stdout] 122 + .values(&outbox_event), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> order-service/src/handlers.rs:142:14 [INFO] [stdout] | [INFO] [stdout] 142 | .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `UpdateStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 140 ~ diesel_async::RunQueryDsl::execute(diesel::update(orders::table.filter(orders::id.eq(order_data.order_id))) [INFO] [stdout] 141 + .set(orders::status.eq("approved")), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 140 ~ diesel::RunQueryDsl::execute(diesel::update(orders::table.filter(orders::id.eq(order_data.order_id))) [INFO] [stdout] 141 + .set(orders::status.eq("approved")), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> order-service/src/handlers.rs:159:14 [INFO] [stdout] | [INFO] [stdout] 159 | .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `UpdateStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 157 ~ diesel_async::RunQueryDsl::execute(diesel::update(orders::table.filter(orders::id.eq(order_data.order_id))) [INFO] [stdout] 158 + .set(orders::status.eq("cancelled")), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 157 ~ diesel::RunQueryDsl::execute(diesel::update(orders::table.filter(orders::id.eq(order_data.order_id))) [INFO] [stdout] 158 + .set(orders::status.eq("cancelled")), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> order-service/src/handlers.rs:174:14 [INFO] [stdout] | [INFO] [stdout] 174 | .first::(conn) [INFO] [stdout] | ^^^^^ multiple `first` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 172 ~ let result = diesel_async::RunQueryDsl::first(processed_commands::table [INFO] [stdout] 173 + .filter(processed_commands::idempotency_key.eq(key)), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 172 ~ let result = diesel::RunQueryDsl::first(processed_commands::table [INFO] [stdout] 173 + .filter(processed_commands::idempotency_key.eq(key)), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> order-service/src/handlers.rs:172:22 [INFO] [stdout] | [INFO] [stdout] 172 | let result = processed_commands::table [INFO] [stdout] | ______________________^ [INFO] [stdout] 173 | | .filter(processed_commands::idempotency_key.eq(key)) [INFO] [stdout] 174 | | .first::(conn) [INFO] [stdout] 175 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> order-service/src/handlers.rs:190:14 [INFO] [stdout] | [INFO] [stdout] 190 | .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `InsertStatement` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 188 ~ diesel::RunQueryDsl::execute(diesel::insert_into(processed_commands::table) [INFO] [stdout] 189 + .values(&processed_command), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 188 ~ diesel_async::RunQueryDsl::execute(diesel::insert_into(processed_commands::table) [INFO] [stdout] 189 + .values(&processed_command), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0034, E0282. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0034`. [INFO] [stdout] [INFO] [stderr] error: could not compile `payment-service` (bin "payment-service" test) due to 7 previous errors [INFO] [stderr] warning: build failed, waiting for other jobs to finish... [INFO] [stdout] Some errors have detailed explanations: E0034, E0282, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0034`. [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0034, E0282. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0034`. [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> order-service/src/handlers.rs:253:14 [INFO] [stdout] | [INFO] [stdout] 253 | .first::(&mut conn) [INFO] [stdout] | ^^^^^ multiple `first` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 251 ~ let saga_data = diesel_async::RunQueryDsl::first(saga_transactions::table [INFO] [stdout] 252 + .filter(saga_transactions::id.eq(reply.saga_id)), &mut conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 251 ~ let saga_data = diesel::RunQueryDsl::first(saga_transactions::table [INFO] [stdout] 252 + .filter(saga_transactions::id.eq(reply.saga_id)), &mut conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stderr] error: could not compile `inventory-service` (bin "inventory-service" test) due to 14 previous errors [INFO] [stderr] error: could not compile `payment-service` (bin "payment-service") due to 7 previous errors [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> order-service/src/handlers.rs:309:14 [INFO] [stdout] | [INFO] [stdout] 309 | .execute(&mut conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `UpdateStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 307 ~ diesel_async::RunQueryDsl::execute(diesel::update(saga_transactions::table.filter(saga_transactions::id.eq(reply.saga_id))) [INFO] [stdout] 308 + .set(&updated_saga), &mut conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 307 ~ diesel::RunQueryDsl::execute(diesel::update(saga_transactions::table.filter(saga_transactions::id.eq(reply.saga_id))) [INFO] [stdout] 308 + .set(&updated_saga), &mut conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> order-service/src/handlers.rs:406:14 [INFO] [stdout] | [INFO] [stdout] 406 | .execute(&mut conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `InsertStatement` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 404 ~ diesel::RunQueryDsl::execute(diesel::insert_into(saga_transactions::table) [INFO] [stdout] 405 + .values(&db_saga), &mut conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 404 ~ diesel_async::RunQueryDsl::execute(diesel::insert_into(saga_transactions::table) [INFO] [stdout] 405 + .values(&db_saga), &mut conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> order-service/src/outbox.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 42 | .load::(&mut conn) [INFO] [stdout] | ^^^^ multiple `load` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 38 ~ let unprocessed_events = diesel_async::RunQueryDsl::load(outbox_events::table [INFO] [stdout] 39 + .filter(outbox_events::processed.eq(false)) [INFO] [stdout] 40 + .order(outbox_events::created_at.asc()) [INFO] [stdout] 41 + .limit(100), &mut conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 38 ~ let unprocessed_events = diesel::RunQueryDsl::load(outbox_events::table [INFO] [stdout] 39 + .filter(outbox_events::processed.eq(false)) [INFO] [stdout] 40 + .order(outbox_events::created_at.asc()) [INFO] [stdout] 41 + .limit(100), &mut conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> order-service/src/outbox.rs:53:18 [INFO] [stdout] | [INFO] [stdout] 53 | .execute(&mut conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `UpdateStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 51 ~ diesel_async::RunQueryDsl::execute(diesel::update(outbox_events::table.filter(outbox_events::id.eq(event.id))) [INFO] [stdout] 52 + .set(outbox_events::processed.eq(true)), &mut conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 51 ~ diesel::RunQueryDsl::execute(diesel::update(outbox_events::table.filter(outbox_events::id.eq(event.id))) [INFO] [stdout] 52 + .set(outbox_events::processed.eq(true)), &mut conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0034, E0282, E0308. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0034`. [INFO] [stdout] [INFO] [stderr] error: could not compile `inventory-service` (bin "inventory-service") due to 14 previous errors [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> order-service/src/handlers.rs:111:22 [INFO] [stdout] | [INFO] [stdout] 111 | .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `InsertStatement` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 109 ~ diesel::RunQueryDsl::execute(diesel::insert_into(orders::table) [INFO] [stdout] 110 + .values(&new_order), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 109 ~ diesel_async::RunQueryDsl::execute(diesel::insert_into(orders::table) [INFO] [stdout] 110 + .values(&new_order), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> order-service/src/handlers.rs:123:22 [INFO] [stdout] | [INFO] [stdout] 123 | .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `InsertStatement` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 121 ~ diesel::RunQueryDsl::execute(diesel::insert_into(outbox_events::table) [INFO] [stdout] 122 + .values(&outbox_event), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 121 ~ diesel_async::RunQueryDsl::execute(diesel::insert_into(outbox_events::table) [INFO] [stdout] 122 + .values(&outbox_event), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> order-service/src/handlers.rs:142:14 [INFO] [stdout] | [INFO] [stdout] 142 | .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `UpdateStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 140 ~ diesel_async::RunQueryDsl::execute(diesel::update(orders::table.filter(orders::id.eq(order_data.order_id))) [INFO] [stdout] 141 + .set(orders::status.eq("approved")), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 140 ~ diesel::RunQueryDsl::execute(diesel::update(orders::table.filter(orders::id.eq(order_data.order_id))) [INFO] [stdout] 141 + .set(orders::status.eq("approved")), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> order-service/src/handlers.rs:159:14 [INFO] [stdout] | [INFO] [stdout] 159 | .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `UpdateStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 157 ~ diesel_async::RunQueryDsl::execute(diesel::update(orders::table.filter(orders::id.eq(order_data.order_id))) [INFO] [stdout] 158 + .set(orders::status.eq("cancelled")), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 157 ~ diesel::RunQueryDsl::execute(diesel::update(orders::table.filter(orders::id.eq(order_data.order_id))) [INFO] [stdout] 158 + .set(orders::status.eq("cancelled")), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> order-service/src/handlers.rs:174:14 [INFO] [stdout] | [INFO] [stdout] 174 | .first::(conn) [INFO] [stdout] | ^^^^^ multiple `first` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 172 ~ let result = diesel_async::RunQueryDsl::first(processed_commands::table [INFO] [stdout] 173 + .filter(processed_commands::idempotency_key.eq(key)), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 172 ~ let result = diesel::RunQueryDsl::first(processed_commands::table [INFO] [stdout] 173 + .filter(processed_commands::idempotency_key.eq(key)), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0282]: type annotations needed [INFO] [stdout] --> order-service/src/handlers.rs:172:22 [INFO] [stdout] | [INFO] [stdout] 172 | let result = processed_commands::table [INFO] [stdout] | ______________________^ [INFO] [stdout] 173 | | .filter(processed_commands::idempotency_key.eq(key)) [INFO] [stdout] 174 | | .first::(conn) [INFO] [stdout] 175 | | .await [INFO] [stdout] | |__________________^ cannot infer type [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> order-service/src/handlers.rs:190:14 [INFO] [stdout] | [INFO] [stdout] 190 | .execute(conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `InsertStatement` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 188 ~ diesel::RunQueryDsl::execute(diesel::insert_into(processed_commands::table) [INFO] [stdout] 189 + .values(&processed_command), conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 188 ~ diesel_async::RunQueryDsl::execute(diesel::insert_into(processed_commands::table) [INFO] [stdout] 189 + .values(&processed_command), conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> order-service/src/handlers.rs:253:14 [INFO] [stdout] | [INFO] [stdout] 253 | .first::(&mut conn) [INFO] [stdout] | ^^^^^ multiple `first` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 251 ~ let saga_data = diesel_async::RunQueryDsl::first(saga_transactions::table [INFO] [stdout] 252 + .filter(saga_transactions::id.eq(reply.saga_id)), &mut conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 251 ~ let saga_data = diesel::RunQueryDsl::first(saga_transactions::table [INFO] [stdout] 252 + .filter(saga_transactions::id.eq(reply.saga_id)), &mut conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> order-service/src/handlers.rs:309:14 [INFO] [stdout] | [INFO] [stdout] 309 | .execute(&mut conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `UpdateStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 307 ~ diesel_async::RunQueryDsl::execute(diesel::update(saga_transactions::table.filter(saga_transactions::id.eq(reply.saga_id))) [INFO] [stdout] 308 + .set(&updated_saga), &mut conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 307 ~ diesel::RunQueryDsl::execute(diesel::update(saga_transactions::table.filter(saga_transactions::id.eq(reply.saga_id))) [INFO] [stdout] 308 + .set(&updated_saga), &mut conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> order-service/src/handlers.rs:406:14 [INFO] [stdout] | [INFO] [stdout] 406 | .execute(&mut conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `InsertStatement` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 404 ~ diesel::RunQueryDsl::execute(diesel::insert_into(saga_transactions::table) [INFO] [stdout] 405 + .values(&db_saga), &mut conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 404 ~ diesel_async::RunQueryDsl::execute(diesel::insert_into(saga_transactions::table) [INFO] [stdout] 405 + .values(&db_saga), &mut conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> order-service/src/outbox.rs:42:14 [INFO] [stdout] | [INFO] [stdout] 42 | .load::(&mut conn) [INFO] [stdout] | ^^^^ multiple `load` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `SelectStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 38 ~ let unprocessed_events = diesel_async::RunQueryDsl::load(outbox_events::table [INFO] [stdout] 39 + .filter(outbox_events::processed.eq(false)) [INFO] [stdout] 40 + .order(outbox_events::created_at.asc()) [INFO] [stdout] 41 + .limit(100), &mut conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 38 ~ let unprocessed_events = diesel::RunQueryDsl::load(outbox_events::table [INFO] [stdout] 39 + .filter(outbox_events::processed.eq(false)) [INFO] [stdout] 40 + .order(outbox_events::created_at.asc()) [INFO] [stdout] 41 + .limit(100), &mut conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] error[E0034]: multiple applicable items in scope [INFO] [stdout] --> order-service/src/outbox.rs:53:18 [INFO] [stdout] | [INFO] [stdout] 53 | .execute(&mut conn) [INFO] [stdout] | ^^^^^^^ multiple `execute` found [INFO] [stdout] | [INFO] [stdout] = note: candidate #1 is defined in an impl of the trait `diesel_async::RunQueryDsl` for the type `T` [INFO] [stdout] = note: candidate #2 is defined in an impl of the trait `diesel::RunQueryDsl` for the type `UpdateStatement` [INFO] [stdout] help: disambiguate the method for candidate #1 [INFO] [stdout] | [INFO] [stdout] 51 ~ diesel_async::RunQueryDsl::execute(diesel::update(outbox_events::table.filter(outbox_events::id.eq(event.id))) [INFO] [stdout] 52 + .set(outbox_events::processed.eq(true)), &mut conn) [INFO] [stdout] | [INFO] [stdout] help: disambiguate the method for candidate #2 [INFO] [stdout] | [INFO] [stdout] 51 ~ diesel::RunQueryDsl::execute(diesel::update(outbox_events::table.filter(outbox_events::id.eq(event.id))) [INFO] [stdout] 52 + .set(outbox_events::processed.eq(true)), &mut conn) [INFO] [stdout] | [INFO] [stdout] [INFO] [stdout] [INFO] [stdout] Some errors have detailed explanations: E0034, E0282. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0034`. [INFO] [stdout] [INFO] [stderr] error: could not compile `order-service` (bin "order-service" test) due to 12 previous errors [INFO] [stdout] Some errors have detailed explanations: E0034, E0282. [INFO] [stdout] [INFO] [stdout] For more information about an error, try `rustc --explain E0034`. [INFO] [stdout] [INFO] [stderr] error: could not compile `order-service` (bin "order-service") due to 12 previous errors [INFO] running `Command { std: "docker" "inspect" "310ae03dd9ac5cd968664c1106b268718e4f038d24161903ee8b22a7b90c0d0b", kill_on_drop: false }` [INFO] running `Command { std: "docker" "rm" "-f" "310ae03dd9ac5cd968664c1106b268718e4f038d24161903ee8b22a7b90c0d0b", kill_on_drop: false }` [INFO] [stdout] 310ae03dd9ac5cd968664c1106b268718e4f038d24161903ee8b22a7b90c0d0b