MCPcopy Create free account
hub / github.com/effect-app/libs / mapReverse

Function mapReverse

packages/effect-app/src/Model/Repository/internal/internal.ts:61–67  ·  view source on GitHub ↗
(
      { _etag, ...e }: PM,
      setEtag: (id: string, eTag: string | undefined) => void
    )

Source from the content-addressed store, hash-verified

59// Event-loop-relevant stall floor: encodes/decodes above this are rare but block Node.
60const SCHEMA_SLOW_MS = 100
61const schemaDecodeDuration = Metric.histogram("app.schema.decode.duration", { boundaries: schemaDurationBoundaries })
62const schemaEncodeDuration = Metric.histogram("app.schema.encode.duration", { boundaries: schemaDurationBoundaries })
63const schemaItemCount = Metric.histogram("app.schema.item_count", {
64 boundaries: [0, 1, 2, 5, 10, 25, 50, 100, 250, 500, 1_000, 5_000]
65})
66const schemaSlow = Metric.counter("app.schema.slow", {
67 description: `Repository schema encode/decode slower than ${SCHEMA_SLOW_MS}ms`,
68 incremental: true
69})
70

Callers 1

makeFunction · 0.85

Calls 1

setEtagFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…