()
| 17 | } |
| 18 | |
| 19 | func emptyBlockSnapshot() *blockSnapshot { |
| 20 | return &blockSnapshot{ |
| 21 | walBlocks: map[uuid.UUID]common.WALBlock{}, |
| 22 | completeBlocks: map[uuid.UUID]*LocalBlock{}, |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | func (s *blockSnapshot) withHeadBlock(b common.WALBlock) *blockSnapshot { |
| 27 | return &blockSnapshot{ |
no outgoing calls