mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 14:07:02 +09:00
Merge branch 'main' into GO-2482-full-sync-request-max-size
# Conflicts: # commonspace/object/tree/synctree/mock_synctree/mock_synctree.go # commonspace/object/tree/synctree/synctree.go # commonspace/object/tree/synctree/synctreehandler.go # commonspace/object/tree/synctree/synctreehandler_test.go # commonspace/object/tree/synctree/treesyncprotocol.go # commonspace/object/tree/synctree/treesyncprotocol_test.go # commonspace/spaceutils_test.go # net/streampool/streampool.go
This commit is contained in:
commit
3fec782d97
17 changed files with 1298 additions and 239 deletions
|
@ -38,9 +38,8 @@ var log = logger.NewNamed(CName)
|
|||
var ErrSpaceClosed = errors.New("space is closed")
|
||||
|
||||
type HistoryTreeOpts struct {
|
||||
BeforeId string
|
||||
Include bool
|
||||
BuildFullTree bool
|
||||
Heads []string
|
||||
Include bool
|
||||
}
|
||||
|
||||
type TreeBuilder interface {
|
||||
|
@ -142,9 +141,8 @@ func (t *treeBuilder) BuildHistoryTree(ctx context.Context, id string, opts Hist
|
|||
|
||||
params := objecttree.HistoryTreeParams{
|
||||
AclList: t.aclList,
|
||||
BeforeId: opts.BeforeId,
|
||||
Heads: opts.Heads,
|
||||
IncludeBeforeId: opts.Include,
|
||||
BuildFullTree: opts.BuildFullTree,
|
||||
}
|
||||
params.TreeStorage, err = t.spaceStorage.TreeStorage(id)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue