(id common.ID, buff []byte, start, end uint32, adjustIngestionSlack bool)
| 348 | } |
| 349 | |
| 350 | func (b *walBlock) Append(id common.ID, buff []byte, start, end uint32, adjustIngestionSlack bool) error { |
| 351 | // if decoder = nil we were created with OpenWALBlock and will not accept writes |
| 352 | if b.decoder == nil { |
| 353 | return nil |
| 354 | } |
| 355 | |
| 356 | trace, err := b.decoder.PrepareForRead(buff) |
| 357 | if err != nil { |
| 358 | return fmt.Errorf("error preparing trace for read: %w", err) |
| 359 | } |
| 360 | |
| 361 | return b.AppendTrace(id, trace, start, end, adjustIngestionSlack) |
| 362 | } |
| 363 | |
| 364 | func (b *walBlock) IngestionSlack() time.Duration { |
| 365 | return b.ingestionSlack |
nothing calls this directly
no test coverage detected