resolve rebuild progress bug

This commit is contained in:
Cassandra Heart 2025-03-25 22:29:48 -05:00
parent 2093606896
commit ca1cd025f3
No known key found for this signature in database
GPG Key ID: 6352152859385958
2 changed files with 8 additions and 1 deletions

View File

@ -68,6 +68,13 @@ func TestLoadHypergraphFallback(t *testing.T) {
for k, a := range clientLoad.GetVertexAdds() {
assert.Equal(t, len(crypto.ConvertAllPreloadedLeaves(string(application.VertexAtomType), string(application.AddsPhaseType), k, clientHypergraphStore, a.GetTree().Root, []int{})), 100000)
}
fmt.Println("Should not reattempt")
serverLoad, err = serverHypergraphStore.LoadHypergraph()
assert.NoError(t, err)
clientLoad, err = clientHypergraphStore.LoadHypergraph()
assert.NoError(t, err)
}
func TestHypergraphSyncServer(t *testing.T) {

View File

@ -779,7 +779,7 @@ func (p *PebbleHypergraphStore) LoadHypergraph() (
}
id := vert.GetID()
if existingTree != nil {
if v, _ := existingTree.Get(id[:]); v == nil {
if v, _ := existingTree.Get(id[:]); v != nil {
continue
}
}