From b237bcd8eb8fa9c8aa187e06882a9a31423159b8 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Mon, 28 Oct 2024 17:44:38 +0530 Subject: [PATCH 1/2] Remove stale auctions after a year --- x/auction/keeper/keeper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/auction/keeper/keeper.go b/x/auction/keeper/keeper.go index 850fa3f0..56aa5110 100644 --- a/x/auction/keeper/keeper.go +++ b/x/auction/keeper/keeper.go @@ -26,7 +26,7 @@ import ( ) // CompletedAuctionDeleteTimeout => Completed auctions are deleted after this timeout (after reveals end time). -const CompletedAuctionDeleteTimeout = time.Hour * 24 +const CompletedAuctionDeleteTimeout = 365 * 24 * time.Hour type AuctionsIndexes struct { Owner *indexes.Multi[string, string, auctiontypes.Auction] -- 2.45.2 From 4a8fe7520101f3856e39faee0a18fbaff981f66a Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Mon, 28 Oct 2024 19:40:19 +0530 Subject: [PATCH 2/2] Add comment --- x/auction/keeper/keeper.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/x/auction/keeper/keeper.go b/x/auction/keeper/keeper.go index 56aa5110..99a837b5 100644 --- a/x/auction/keeper/keeper.go +++ b/x/auction/keeper/keeper.go @@ -26,7 +26,7 @@ import ( ) // CompletedAuctionDeleteTimeout => Completed auctions are deleted after this timeout (after reveals end time). -const CompletedAuctionDeleteTimeout = 365 * 24 * time.Hour +const CompletedAuctionDeleteTimeout = 365 * 24 * time.Hour // 1 year type AuctionsIndexes struct { Owner *indexes.Multi[string, string, auctiontypes.Auction] -- 2.45.2