1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-08 05:47:07 +09:00

normalizeDvRelations

remove duplicate relations
This commit is contained in:
Roman Khafizianov 2021-08-05 19:05:02 +04:00
parent c2cd4cf278
commit c7bda24efc
No known key found for this signature in database
GPG key ID: F07A7D55A2684852
4 changed files with 41 additions and 5 deletions

View file

@ -40,10 +40,13 @@ func main() {
fmt.Println(dt.Stats().MlString())
fmt.Println("build tree...")
st := time.Now()
t, _, err := change.BuildTree(dt)
if err != nil {
log.Fatal("build tree error:", err)
}
fmt.Printf("build tree done in %.1fs\n", time.Since(st).Seconds())
if *changeIdx != -1 {
id := ""
i := 0