Skip to content

Commit

Permalink
Cleanup post processor (#346)
Browse files Browse the repository at this point in the history
* Cleanup post processor

* Update dockerfile
  • Loading branch information
rtso authored Apr 16, 2024
1 parent 7d215b9 commit c30b075
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 314 deletions.
20 changes: 0 additions & 20 deletions rust/Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

15 changes: 7 additions & 8 deletions rust/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,13 +1,7 @@
[workspace]
resolver = "2"

members = [
"indexer-metrics",
"moving-average",
"post-processor",
"processor",
"server-framework",
]
members = ["indexer-metrics", "moving-average", "processor", "server-framework"]

[workspace.package]
authors = ["Aptos Labs <[email protected]>"]
Expand Down Expand Up @@ -45,7 +39,12 @@ diesel = { version = "2.1", features = [
] }
# Use the crate version once this feature gets released on crates.io:
# https://github.com/weiznich/diesel_async/commit/e165e8c96a6c540ebde2d6d7c52df5c5620a4bf1
diesel-async = { git = "https://github.com/weiznich/diesel_async.git", rev = "d02798c67065d763154d7272dd0c09b39757d0f2", features = ["async-connection-wrapper", "postgres", "bb8", "tokio"] }
diesel-async = { git = "https://github.com/weiznich/diesel_async.git", rev = "d02798c67065d763154d7272dd0c09b39757d0f2", features = [
"async-connection-wrapper",
"postgres",
"bb8",
"tokio",
] }
diesel_migrations = { version = "2.1.0", features = ["postgres"] }
diesel_async_migrations = { git = "https://github.com/niroco/diesel_async_migrations", rev = "11f331b73c5cfcc894380074f748d8fda710ac12" }
enum_dispatch = "0.3.12"
Expand Down
3 changes: 0 additions & 3 deletions rust/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,6 @@ COPY --link . /app
RUN apt-get update && apt-get install -y cmake curl clang git pkg-config libssl-dev libpq-dev lld
RUN cargo build --locked --release -p processor
RUN cp target/release/processor /usr/local/bin
RUN cargo build --locked --release -p post-processor
RUN cp target/release/post-processor /usr/local/bin
RUN cargo build --locked --release -p indexer-metrics
RUN cp target/release/indexer-metrics /usr/local/bin

Expand All @@ -29,7 +27,6 @@ ENV GIT_SHA ${GIT_SHA}
FROM debian:bullseye-slim

COPY --from=builder /usr/local/bin/processor /usr/local/bin
COPY --from=builder /usr/local/bin/post-processor /usr/local/bin
COPY --from=builder /usr/local/bin/indexer-metrics /usr/local/bin

RUN --mount=type=cache,target=/var/cache/apt,sharing=locked \
Expand Down
28 changes: 0 additions & 28 deletions rust/post-processor/Cargo.toml

This file was deleted.

13 changes: 0 additions & 13 deletions rust/post-processor/config.yaml

This file was deleted.

5 changes: 0 additions & 5 deletions rust/post-processor/src/lib.rs

This file was deleted.

64 changes: 0 additions & 64 deletions rust/post-processor/src/main.rs

This file was deleted.

38 changes: 0 additions & 38 deletions rust/post-processor/src/metrics.rs

This file was deleted.

135 changes: 0 additions & 135 deletions rust/post-processor/src/processor_status_checker.rs

This file was deleted.

0 comments on commit c30b075

Please sign in to comment.