itsgoin/crates/core/src
Scott Reimers 1658762a68 Phase 2a (0.6.1-beta): add file_holders table + legacy seed migration
New flat per-file holder set replaces the directional upstream/downstream
trees. Keyed by 32-byte content-addressed file_id (works for both PostId
and blob CID). LRU-capped at 5 holders per file on touch.

- HolderDirection enum (Sent/Received/Both) — tracked for potential
  reuse, not load-bearing for propagation
- touch_file_holder / get_file_holders / delete_file_holders
- seed_file_holders_from_legacy: one-time idempotent seed from
  post_upstream, post_downstream, blob_upstream, blob_downstream so
  users upgrading from 0.6.0 don't start with empty holder sets

Table and methods land here; call-site refactor and legacy-table drop
follow in subsequent commits within this phase.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-21 20:52:30 -04:00
..
activity.rs ItsGoin v0.3.2 — Decentralized social media network 2026-03-15 20:23:09 -04:00
blob.rs v0.3.6: Active CDN replication, device roles, budgets, tombstones, engagement fix, DOS hardening 2026-03-20 21:00:28 -04:00
connection.rs Phase 1 (0.6.0-beta): remove direct PostPush for encrypted posts 2026-04-21 20:46:34 -04:00
content.rs ItsGoin v0.3.2 — Decentralized social media network 2026-03-15 20:23:09 -04:00
crypto.rs v0.4.1: Security hardening, lock contention fixes, data cleanup 2026-03-21 19:30:38 -04:00
export.rs Export/Import: ZIP export with scope selection, import with public post merge 2026-03-31 20:56:03 -04:00
http.rs Clean up warnings: remove dead code, unused imports 2026-03-22 23:38:18 -04:00
identity.rs First-run chooser, node shutdown on switch, file picker, export path fix 2026-04-06 01:58:02 -04:00
import.rs AppImage video fix, proper import posts, first-run chooser, file pickers 2026-04-16 13:49:52 -04:00
lib.rs Export/Import: ZIP export with scope selection, import with public post merge 2026-03-31 20:56:03 -04:00
network.rs Phase 1 (0.6.0-beta): remove direct PostPush for encrypted posts 2026-04-21 20:46:34 -04:00
node.rs Phase 1 (0.6.0-beta): remove direct PostPush for encrypted posts 2026-04-21 20:46:34 -04:00
protocol.rs Feed pagination, duplicate identity detection, pkarr leak fix, Android SAF 2026-04-18 15:35:23 -04:00
storage.rs Phase 2a (0.6.1-beta): add file_holders table + legacy seed migration 2026-04-21 20:52:30 -04:00
stun.rs Our Info panel, hole punch race fix, NAT profiles in relay introduction 2026-04-05 17:57:41 -04:00
types.rs v0.5.0-beta: merge-with-key import, prior_author provenance, beta versioning 2026-04-05 14:47:24 -04:00
upnp.rs ItsGoin v0.3.2 — Decentralized social media network 2026-03-15 20:23:09 -04:00
web.rs v0.4.3: Lock contention overhaul, StoragePool, mobile bottom nav, text scaling 2026-03-22 21:35:38 -04:00