Remove stale auctions after a year (#63)

Part of [Create a public laconicd testnet](https://www.notion.so/Create-a-public-laconicd-testnet-896a11bdd8094eff8f1b49c0be0ca3b8)

Reviewed-on: cerc-io/laconicd#63
Co-authored-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
Co-committed-by: Prathamesh Musale <prathamesh.musale0@gmail.com>
This commit is contained in:
Prathamesh Musale 2024-10-29 04:04:49 +00:00 committed by nabarun
parent c807a9db80
commit 65957d6199

View File

@ -26,7 +26,7 @@ import (
) )
// CompletedAuctionDeleteTimeout => Completed auctions are deleted after this timeout (after reveals end time). // CompletedAuctionDeleteTimeout => Completed auctions are deleted after this timeout (after reveals end time).
const CompletedAuctionDeleteTimeout = time.Hour * 24 const CompletedAuctionDeleteTimeout = 365 * 24 * time.Hour // 1 year
type AuctionsIndexes struct { type AuctionsIndexes struct {
Owner *indexes.Multi[string, string, auctiontypes.Auction] Owner *indexes.Multi[string, string, auctiontypes.Auction]