(b common.WALBlock)
| 24 | } |
| 25 | |
| 26 | func (s *blockSnapshot) withHeadBlock(b common.WALBlock) *blockSnapshot { |
| 27 | return &blockSnapshot{ |
| 28 | headBlock: b, |
| 29 | walBlocks: s.walBlocks, |
| 30 | completeBlocks: s.completeBlocks, |
| 31 | } |
| 32 | } |
| 33 | |
| 34 | func (s *blockSnapshot) withWALBlockAdded(id uuid.UUID, b common.WALBlock) *blockSnapshot { |
| 35 | w := maps.Clone(s.walBlocks) |
no outgoing calls