From 406881a13bc69cb8b4b9badf44eadc9e9bae0f9a Mon Sep 17 00:00:00 2001 From: Marcin Rataj Date: Wed, 26 Feb 2025 18:26:49 +0100 Subject: [PATCH] chore(ipns): lower DefaultRecordTTL to 5m See rationale in https://github.com/ipfs/kubo/issues/10718 --- CHANGELOG.md | 2 ++ ipns/defaults.go | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 2cd5c66ae..60d2de41d 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -18,6 +18,8 @@ The following emojis are used to highlight certain changes: ### Changed +- `ipns`: The `DefaultRecordTTL` changed from `1h` to `5m` [#859](https://github.com/ipfs/boxo/pull/859) + ### Removed ### Fixed diff --git a/ipns/defaults.go b/ipns/defaults.go index c2179e61e..15b27a121 100644 --- a/ipns/defaults.go +++ b/ipns/defaults.go @@ -13,5 +13,5 @@ const ( // cache before checking for update again. The function of this TTL is // similar to TTL of DNS record, and the default here is a trade-off // between faster updates and benefiting from various types of caching. - DefaultRecordTTL = 1 * time.Hour + DefaultRecordTTL = 5 * time.Minute )