mirror of
https://github.com/anyproto/any-sync.git
synced 2025-06-08 05:57:03 +09:00
GO-3170: add test for pick function pick and remove p2p status from anysync
Signed-off-by: AnastasiaShemyakinskaya <shem98a@mail.ru>
This commit is contained in:
parent
a2b8442749
commit
68c853f2ce
4 changed files with 34 additions and 15 deletions
|
@ -32,7 +32,6 @@ 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"
|
||||
|
@ -69,7 +68,6 @@ type SpaceService interface {
|
|||
type Deps struct {
|
||||
TreeSyncer treesyncer.TreeSyncer
|
||||
SyncStatus syncstatus.StatusUpdater
|
||||
PeerStatus peerstatus.StatusUpdateSender
|
||||
}
|
||||
|
||||
type spaceService struct {
|
||||
|
@ -179,7 +177,6 @@ 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