ssbc / ssb-friends

Manages the SSB social graph
MIT License
23 stars 6 forks source link

reset db2 social graph after deletes and compact #79

Closed staltz closed 2 years ago

staltz commented 2 years ago

Context

https://github.com/ssbc/ssb-replication-scheduler/issues/3

Problem

layered-graph doesn't have a way of resetting the data structure, so our reset() function in db2Contacts was actually preserving parts of the outdated social graph.

Solution

Use https://github.com/ssbc/layered-graph/pull/6 to reset the data structure.

1st :x: 2nd :heavy_check_mark: