1
0
Fork 0
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:
AnastasiaShemyakinskaya 2024-05-30 23:05:06 +02:00
parent a2b8442749
commit 68c853f2ce
No known key found for this signature in database
GPG key ID: CCD60ED83B103281
4 changed files with 34 additions and 15 deletions

View file

@ -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)).