this repo has no description
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

narrow MST error checks

+4 -2
+2 -1
atproto/repo/mst/node_insert.go
··· 1 1 package mst 2 2 3 3 import ( 4 + "errors" 4 5 "fmt" 5 6 "slices" 6 7 ··· 66 67 } 67 68 68 69 // include "covering" proof for this operation 69 - if err := proveMutation(n, key); err != nil { 70 + if err := proveMutation(n, key); err != nil && !errors.Is(err, ErrPartialTree) { 70 71 return nil, nil, err 71 72 } 72 73
+2 -1
atproto/repo/mst/node_remove.go
··· 1 1 package mst 2 2 3 3 import ( 4 + "errors" 4 5 "fmt" 5 6 "slices" 6 7 ··· 61 62 } 62 63 63 64 // marks adjacent child nodes dirty to include as "proof" 64 - if err := proveMutation(n, key); err != nil { 65 + if err := proveMutation(n, key); err != nil && !errors.Is(err, ErrPartialTree) { 65 66 return nil, nil, err 66 67 } 67 68