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

Rewrite to old streampool

This commit is contained in:
mcrakhman 2024-08-11 17:34:24 +02:00
parent 4e32768c19
commit 17af238f03
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B
34 changed files with 394 additions and 875 deletions

View file

@ -9,6 +9,8 @@ import (
"go.uber.org/zap"
"storj.io/drpc"
"github.com/anyproto/any-sync/commonspace/acl/aclclient"
"github.com/anyproto/any-sync/commonspace/deletionmanager"
"github.com/anyproto/any-sync/commonspace/object/treesyncer"
@ -17,10 +19,6 @@ import (
"github.com/anyproto/any-sync/net"
"github.com/anyproto/any-sync/net/peer"
"github.com/anyproto/any-sync/net/pool"
"github.com/anyproto/any-sync/net/streampool"
"github.com/anyproto/any-sync/net/streampool/streamopener"
"storj.io/drpc"
"github.com/anyproto/any-sync/accountservice"
"github.com/anyproto/any-sync/app"
@ -68,9 +66,8 @@ type SpaceService interface {
}
type Deps struct {
SyncStatus syncstatus.StatusUpdater
TreeSyncer treesyncer.TreeSyncer
StreamOpener streamopener.StreamOpener
SyncStatus syncstatus.StatusUpdater
TreeSyncer treesyncer.TreeSyncer
}
type spaceService struct {
@ -182,8 +179,6 @@ func (s *spaceService) NewSpace(ctx context.Context, id string, deps Deps) (Spac
spaceApp.Register(state).
Register(deps.SyncStatus).
Register(peerManager).
Register(deps.StreamOpener).
Register(streampool.NewStreamPool()).
Register(newCommonStorage(st)).
Register(objectsync.New()).
Register(sync.NewSyncService()).