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:
commit
0734c5a098
2 changed files with 23 additions and 0 deletions
|
@ -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)).
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue