aboutsummaryrefslogtreecommitdiff
path: root/format/pack/ingest/state.go
diff options
context:
space:
mode:
authorGravatar Runxi Yu2026-03-05 19:45:55 +0800
committerGravatar Runxi Yu2026-03-05 19:45:55 +0800
commit52d09308c07722daaeb66b5c4d65a91d460abd5d (patch)
treea2e75d8c78dc597575a440755e15722393f22872 /format/pack/ingest/state.go
parentformat/pack/ingest: Optimize writes (diff)
signatureNo signature
format/pack/ingest: That was silly, obviously just use the ObjectID
Diffstat (limited to 'format/pack/ingest/state.go')
-rw-r--r--format/pack/ingest/state.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/format/pack/ingest/state.go b/format/pack/ingest/state.go
index 7033a6f6..3fabe639 100644
--- a/format/pack/ingest/state.go
+++ b/format/pack/ingest/state.go
@@ -35,7 +35,7 @@ type ingestState struct {
refDeltas []refDeltaRef
unresolvedRefDeltas []int
offsetToRecord map[uint64]int
- objectToRecord map[string]int
+ objectToRecord map[objectid.ObjectID]int
baseCache *deltaBaseCache
packHash objectid.ObjectID
@@ -65,7 +65,7 @@ func newIngestState(
writeRev: writeRev,
base: base,
offsetToRecord: make(map[uint64]int),
- objectToRecord: make(map[string]int),
+ objectToRecord: make(map[objectid.ObjectID]int),
baseCache: newDeltaBaseCache(defaultDeltaBaseCacheMaxBytes),
}, nil
}