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

Change deletion logic in headsync and objectsync

This commit is contained in:
mcrakhman 2023-02-23 23:58:09 +01:00 committed by Mikhail Iudin
parent 73b27c7dac
commit a0aa02bb8a
No known key found for this signature in database
GPG key ID: FAAAA8BAABDFF1C0
4 changed files with 28 additions and 13 deletions

View file

@ -139,8 +139,8 @@ func (s *spaceService) NewSpace(ctx context.Context, id string) (Space, error) {
return nil, err
}
headSync := headsync.NewHeadSync(id, spaceIsDeleted, s.config.SyncPeriod, st, peerManager, getter, syncStatus, log)
objectSync := objectsync.NewObjectSync(id, spaceIsDeleted, peerManager, getter)
headSync := headsync.NewHeadSync(id, spaceIsDeleted, s.config.SyncPeriod, lastConfiguration, st, peerManager, getter, syncStatus, log)
objectSync := objectsync.NewObjectSync(id, spaceIsDeleted, lastConfiguration, peerManager, getter)
sp := &space{
id: id,
objectSync: objectSync,