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

Merge branch 'go-3171-check-p2p-status-and-send-event' of github.com:anyproto/any-sync into go-3170-check-objects-and-files-are-synced-with-responsible-peers-in

# Conflicts:
#	commonspace/spaceservice.go
This commit is contained in:
AnastasiaShemyakinskaya 2024-05-24 16:24:32 +02:00
commit 0734c5a098
No known key found for this signature in database
GPG key ID: CCD60ED83B103281
2 changed files with 23 additions and 0 deletions

View file

@ -32,6 +32,7 @@ import (
"github.com/anyproto/any-sync/commonspace/objectsync"
"github.com/anyproto/any-sync/commonspace/objecttreebuilder"
"github.com/anyproto/any-sync/commonspace/peermanager"
"github.com/anyproto/any-sync/commonspace/peerstatus"
"github.com/anyproto/any-sync/commonspace/requestmanager"
"github.com/anyproto/any-sync/commonspace/settings"
"github.com/anyproto/any-sync/commonspace/spacestate"
@ -68,6 +69,7 @@ type SpaceService interface {
type Deps struct {
TreeSyncer treesyncer.TreeSyncer
SyncStatus syncstatus.StatusUpdater
PeerStatus peerstatus.StatusUpdateSender
}
type spaceService struct {
@ -177,6 +179,7 @@ func (s *spaceService) NewSpace(ctx context.Context, id string, deps Deps) (Spac
}
spaceApp := s.app.ChildApp()
spaceApp.Register(state).
Register(deps.PeerStatus).
Register(deps.SyncStatus).
Register(peerManager).
Register(newCommonStorage(st)).