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

Add global pool

This commit is contained in:
mcrakhman 2024-08-09 11:08:04 +02:00
parent c271269722
commit 54245aef82
No known key found for this signature in database
GPG key ID: DED12CFEF5B8396B
10 changed files with 560 additions and 14 deletions

View file

@ -17,6 +17,7 @@ import (
"github.com/anyproto/any-sync/app/ocache"
"github.com/anyproto/any-sync/commonspace/config"
"github.com/anyproto/any-sync/commonspace/credentialprovider"
"github.com/anyproto/any-sync/commonspace/globalsync"
"github.com/anyproto/any-sync/commonspace/object/accountdata"
"github.com/anyproto/any-sync/commonspace/object/acl/list"
"github.com/anyproto/any-sync/commonspace/object/tree/objecttree"
@ -657,6 +658,7 @@ func newFixtureWithData(t *testing.T, spaceId string, keys *accountdata.AccountK
process: newSpaceProcess(spaceId),
}
fx.app.Register(fx.account).
Register(globalsync.New()).
Register(fx.config).
Register(peerPool).
Register(rpctest.NewTestServer()).