(x any)
| 243 | } |
| 244 | |
| 245 | func (h *contentMetadataHeap) Push(x any) { |
| 246 | bm := x.(blob.Metadata) //nolint:forcetypeassert |
| 247 | |
| 248 | h.index[bm.BlobID] = len(h.data) |
| 249 | h.data = append(h.data, bm) |
| 250 | h.totalDataBytes += bm.Length |
| 251 | } |
| 252 | |
| 253 | func (h *contentMetadataHeap) AddOrUpdate(bm blob.Metadata) { |
| 254 | if i, exists := h.index[bm.BlobID]; exists { |
no outgoing calls
no test coverage detected