From b237bcd8eb8fa9c8aa187e06882a9a31423159b8 Mon Sep 17 00:00:00 2001 From: Prathamesh Musale Date: Mon, 28 Oct 2024 17:44:38 +0530 Subject: [PATCH] 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]