refactor(dm): tighten visibility of internal-only paging helpers

- BackwardRelayPager.floorFor was public but only ever called inside the
  pager (and its same-module test) — narrow to internal.
- RelayReachMarker composable was public but only rendered by
  RelayWindowLimitMarkers in the same file; the public entry points are
  RelayWindowLimitMarkers/Sentinels — make it private.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
This commit is contained in:
Vitor Pamplona
2026-06-05 16:45:04 -04:00
co-authored by Claude Opus 4.8
parent 48333f0007
commit e9f2f1d7aa
2 changed files with 2 additions and 2 deletions
@@ -196,7 +196,7 @@ fun RelayWindowLimitMarkers(
* Reads e.g. "Relay sync: ✓ 8 · ↓ 1" or "Relay sync: ↓ nostr.wine".
*/
@Composable
fun RelayReachMarker(entries: List<RelayReach>) {
private fun RelayReachMarker(entries: List<RelayReach>) {
if (entries.isEmpty()) return
Row(
@@ -132,7 +132,7 @@ class BackwardRelayPager<K>(
val relayProgress: StateFlow<Map<NormalizedRelayUrl, RelayPagingProgress>> = _relayProgress.asStateFlow()
/** The session-pinned floor for [key] — where its paging starts (just below the live tail). */
fun floorFor(key: K): Long = pinnedFloor.getOrPut(key) { TimeUtils.now() - liveTailSeconds }
internal fun floorFor(key: K): Long = pinnedFloor.getOrPut(key) { TimeUtils.now() - liveTailSeconds }
// --- Filter building support: the caller assembles the actual REQ from these. ---