Skip to content

Commit 48f6802

Browse files
committed
Remove entrypoint script and unedded checks
1 parent 611e27f commit 48f6802

4 files changed

Lines changed: 2 additions & 26 deletions

File tree

src/evm-block-extractor/Dockerfile

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -37,15 +37,9 @@ RUN apt-get update -y \
3737
COPY --from=builder /app/target/release/evm-block-extractor-server /app/evm-block-extractor-server
3838

3939

40-
# Copy the entrypoint script into the container
41-
COPY src/evm-block-extractor/scripts/entrypoint.sh /app/entrypoint.sh
42-
43-
# Make the entrypoint script executable
44-
RUN chmod +x /app/entrypoint.sh
45-
46-
# Set the entrypoint script as the default way to start the container
47-
ENTRYPOINT ["/app/entrypoint.sh"]
4840

4941
EXPOSE 8080
5042

5143

44+
CMD ./evm-block-extractor-server -s 0.0.0.0:8080 --bigquery -p $PROJECT_ID -d $DATASET
45+

src/evm-block-extractor/scripts/entrypoint.sh

Lines changed: 0 additions & 6 deletions
This file was deleted.

src/evm-block-extractor/src/database/big_query_db_client.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -295,12 +295,6 @@ impl DatabaseClient for BigQueryDbClient {
295295
receipts: &[StorableExecutionResult],
296296
transactions: &[Transaction],
297297
) -> anyhow::Result<()> {
298-
if blocks.is_empty() && receipts.is_empty() && transactions.is_empty() {
299-
log::debug!("No block data, receipts, or transactions to insert. Skipping.");
300-
301-
return Ok(());
302-
}
303-
304298
if !blocks.is_empty() {
305299
log::info!(
306300
"Insert block data for blocks in range {} to {}",

src/evm-block-extractor/src/database/postgres_db_client.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,12 +87,6 @@ impl DatabaseClient for PostgresDbClient {
8787
receipts: &[StorableExecutionResult],
8888
transactions: &[Transaction],
8989
) -> anyhow::Result<()> {
90-
if blocks.is_empty() && receipts.is_empty() && transactions.is_empty() {
91-
log::info!("No block data to insert");
92-
93-
return Ok(());
94-
}
95-
9690
if !blocks.is_empty() {
9791
log::info!(
9892
"Insert block data for blocks in range {} to {}",

0 commit comments

Comments
 (0)