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:
parent
17ea292584
commit
138df7a234
6 changed files with 92 additions and 20 deletions
|
@ -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
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue