Skip to content

Max Record LifeTime Set To 36 Hours, Bug? #397

@bonedaddy

Description

@bonedaddy

While working on a go-libp2p-kad-dht fork I noticed this line of code within the records.go file that says the max record age is 36 hours.

Throughout other parts of the codebase, such as the the providers.go file, provide validity is set to 24 hours. Additionally from conversations over irc and discord, I was under the assumption that the max record age is 24 hours.

For example in handlers.go we perform a check against MaxRecordAge to determine whether or not we should delete old records. With the current MaxRecordAge, instead of invalidating records after 24 hours, we will do it after 36 hours.

Is this a bug, or an undocumented edge-case?

Metadata

Metadata

Assignees

No one assigned

    Labels

    kind/supportA question or request for supporttopic/docsDocumentation

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions