Remove stale auctions after a year
Some checks failed
Integration Tests / test-integration (pull_request) Successful in 2m26s
Build / build (pull_request) Successful in 2m39s
E2E Tests / test-e2e (pull_request) Failing after 4m7s
Unit Tests / test-unit (pull_request) Successful in 2m39s
SDK Tests / sdk_tests_nameservice_expiry (pull_request) Failing after 8m56s
SDK Tests / sdk_tests_authority_auctions (pull_request) Successful in 15m16s
SDK Tests / sdk_tests (pull_request) Successful in 21m3s

This commit is contained in:
Prathamesh Musale 2024-10-28 17:44:38 +05:30
parent c807a9db80
commit b237bcd8eb

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
type AuctionsIndexes struct { type AuctionsIndexes struct {
Owner *indexes.Multi[string, string, auctiontypes.Auction] Owner *indexes.Multi[string, string, auctiontypes.Auction]