1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 05:57:03 +09:00

Add exporter/viewer interfaces and empty methods, refactoring

This commit is contained in:
mcrakhman 2023-01-22 22:16:14 +01:00 committed by Mikhail Iudin
parent 13bd358bce
commit 88c4bc28f6
No known key found for this signature in database
GPG key ID: FAAAA8BAABDFF1C0
14 changed files with 203 additions and 144 deletions

View file

@ -39,7 +39,7 @@ func (r *rawChangeLoader) LoadFromTree(t *Tree, breakpoints []string) ([]*treech
convert := func(chs []*Change) (rawChanges []*treechangeproto.RawTreeChangeWithId, err error) {
for _, ch := range chs {
var raw *treechangeproto.RawTreeChangeWithId
raw, err = r.changeBuilder.BuildRaw(ch)
raw, err = r.changeBuilder.Marshall(ch)
if err != nil {
return
}
@ -226,7 +226,7 @@ func (r *rawChangeLoader) loadEntry(id string) (entry rawCacheEntry, err error)
return
}
change, err := r.changeBuilder.ConvertFromRaw(rawChange, false)
change, err := r.changeBuilder.Unmarshall(rawChange, false)
if err != nil {
return
}