Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion Cargo.lock

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

2 changes: 1 addition & 1 deletion auction-server/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "auction-server"
version = "0.35.2"
version = "0.36.0"
edition = "2021"
license-file = "license.txt"

Expand Down
6 changes: 0 additions & 6 deletions auction-server/src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -102,12 +102,6 @@ pub struct DeletePgRowsOptions {
#[arg(env = "DELETE_THRESHOLD_SECONDS")]
#[arg(default_value = "172800")] // 2 days in seconds
pub delete_threshold_secs: u64,

/// The buffer time to account for bids that may still exist in the db. We cannot delete auctions with ids that are still referenced by bids, so we wait an additional buffer time before deleting auctions.
#[arg(long = "delete-buffer-auction-seconds")]
#[arg(env = "DELETE_BUFFER_AUCTION_SECONDS")]
#[arg(default_value = "3600")] // 1 hour in seconds
pub delete_buffer_auction_secs: u64,
}

#[derive(Args, Clone, Debug)]
Expand Down
2 changes: 1 addition & 1 deletion auction-server/src/kernel/workers.rs
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ pub async fn run_delete_pg_db_history(

delete_pg_db_auction_history(
db,
delete_threshold_secs + delete_pg_rows_options.delete_buffer_auction_secs,
delete_threshold_secs,
)
.await?;
}
Expand Down
1 change: 0 additions & 1 deletion integration.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,6 @@ def main():
f.write(f'export DELETE_ENABLED=true\n')
f.write(f'export DELETE_INTERVAL_SECONDS={1}\n')
f.write(f'export DELETE_THRESHOLD_SECONDS={60*60*24*2}\n')
f.write(f'export DELETE_BUFFER_AUCTION_SECONDS={60*60}\n')

mint_buy = Keypair.from_json((open('keypairs/mint_buy.json').read())).pubkey()
mint_sell = Keypair.from_json((open('keypairs/mint_sell.json').read())).pubkey()
Expand Down
Loading