earthstar-project / earthstar

Storage for private, distributed, offline-first applications.
https://earthstar-project.org
GNU Lesser General Public License v3.0
637 stars 20 forks source link

Permanently delete expired ephemeral docs #251

Closed sgwilym closed 2 years ago

sgwilym commented 2 years ago

What's the problem you solved?

@AnActualEmerald reported to me that they found expired docs remained in storage, even though they were not being returned in results. This is obviously not what we want.

What solution are you recommending?

Replicas will now permanently delete all expired docs on instantiation, and thereafter every hour. Later on I will make it so that documents are erased on their actual expiry timestamp.