Skip to content

Commit

Permalink
chore: clippy + Dockerfile
Browse files Browse the repository at this point in the history
  • Loading branch information
ratankaliani committed Mar 8, 2025
1 parent b8c2e85 commit fac8fb3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions scripts/prove/bin/multi.rs
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
use anyhow::Result;
use anyhow::{Context, Result};
use clap::Parser;
use op_succinct_host_utils::{
block_range::get_validated_block_range,
Expand All @@ -18,10 +18,10 @@ use tracing::debug;
async fn main() -> Result<()> {
let args = HostExecutorArgs::parse();

dotenv::from_path(&args.env_file).expect(&format!(
dotenv::from_path(&args.env_file).context(format!(
"Environment file not found: {}",
args.env_file.display()
));
))?;
utils::setup_logger();

let data_fetcher = OPSuccinctDataFetcher::new_with_rollup_config().await?;
Expand Down
6 changes: 3 additions & 3 deletions validity/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ RUN --mount=type=ssh \
--mount=type=cache,target=/root/.cargo/registry \
--mount=type=cache,target=/build/target \
cargo build --bin validity --release && \
cp target/release/validity /build/validity
cp target/release/validity /build/validity-proposer

# Final stage
FROM rust:1.85-slim
Expand All @@ -52,10 +52,10 @@ RUN curl -L https://sp1.succinct.xyz | bash && \
~/.sp1/bin/cargo-prove prove --version

# Copy only the built binaries from builder
COPY --from=builder /build/validity /usr/local/bin/validity
COPY --from=builder /build/validity-proposer /usr/local/bin/validity-proposer

# Set jemalloc flags to aggressively release memory to avoid memory fragmentation.
ENV JEMALLOC_SYS_WITH_MALLOC_CONF="background_thread:true,narenas:1,tcache:false,dirty_decay_ms:0,muzzy_decay_ms:0,abort_conf:true"

# Run the server from its permanent location
CMD ["/usr/local/bin/validity"]
CMD ["/usr/local/bin/validity-proposer"]

0 comments on commit fac8fb3

Please sign in to comment.