1
0
Fork 0
mirror of https://github.com/anyproto/any-sync.git synced 2025-06-08 14:07:02 +09:00

Add excluded limit

This commit is contained in:
mcrakhman 2024-08-08 12:01:44 +02:00
parent 17ea292584
commit 138df7a234
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B
6 changed files with 92 additions and 20 deletions

View file

@ -6,10 +6,11 @@ import (
"fmt"
"time"
"go.uber.org/zap"
"github.com/anyproto/any-sync/app/logger"
"github.com/anyproto/any-sync/commonspace/object/tree/treestorage"
"github.com/anyproto/any-sync/util/slice"
"go.uber.org/zap"
)
var (
@ -181,6 +182,7 @@ func (tb *treeBuilder) loadChange(id string) (ch *Change, err error) {
if err != nil {
return nil, err
}
// TODO: see if we can delete this
if !tb.keepInMemoryData {
ch.Data = nil
}