Skip to content

Commit 3d8cb04

Browse files
authored
Fix: drop delete buffer auction secs (#581)
* drop the delete buffer auction secs param * bump version
1 parent 9188faa commit 3d8cb04

File tree

5 files changed

+3
-10
lines changed

5 files changed

+3
-10
lines changed

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

auction-server/Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "auction-server"
3-
version = "0.35.2"
3+
version = "0.36.0"
44
edition = "2021"
55
license-file = "license.txt"
66

auction-server/src/config.rs

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -102,12 +102,6 @@ pub struct DeletePgRowsOptions {
102102
#[arg(env = "DELETE_THRESHOLD_SECONDS")]
103103
#[arg(default_value = "172800")] // 2 days in seconds
104104
pub delete_threshold_secs: u64,
105-
106-
/// 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.
107-
#[arg(long = "delete-buffer-auction-seconds")]
108-
#[arg(env = "DELETE_BUFFER_AUCTION_SECONDS")]
109-
#[arg(default_value = "3600")] // 1 hour in seconds
110-
pub delete_buffer_auction_secs: u64,
111105
}
112106

113107
#[derive(Args, Clone, Debug)]

auction-server/src/kernel/workers.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -125,7 +125,7 @@ pub async fn run_delete_pg_db_history(
125125

126126
delete_pg_db_auction_history(
127127
db,
128-
delete_threshold_secs + delete_pg_rows_options.delete_buffer_auction_secs,
128+
delete_threshold_secs,
129129
)
130130
.await?;
131131
}

integration.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ def main():
1616
f.write(f'export DELETE_ENABLED=true\n')
1717
f.write(f'export DELETE_INTERVAL_SECONDS={1}\n')
1818
f.write(f'export DELETE_THRESHOLD_SECONDS={60*60*24*2}\n')
19-
f.write(f'export DELETE_BUFFER_AUCTION_SECONDS={60*60}\n')
2019

2120
mint_buy = Keypair.from_json((open('keypairs/mint_buy.json').read())).pubkey()
2221
mint_sell = Keypair.from_json((open('keypairs/mint_sell.json').read())).pubkey()

0 commit comments

Comments
 (0)