Fix sync client

This commit is contained in:
mcrakhman 2023-06-02 01:08:56 +02:00
parent 815bc7927d
commit a89a325d6c
No known key found for this signature in database
GPG Key ID: DED12CFEF5B8396B
2 changed files with 4 additions and 1 deletions

View File

@ -33,7 +33,9 @@ type syncClient struct {
} }
func New() SyncClient { func New() SyncClient {
return &syncClient{} return &syncClient{
RequestFactory: &requestFactory{},
}
} }
func (s *syncClient) Init(a *app.App) (err error) { func (s *syncClient) Init(a *app.App) (err error) {

View File

@ -87,6 +87,7 @@ func (t *treeBuilder) Init(a *app.App) (err error) {
t.syncStatus = a.MustComponent(syncstatus.CName).(syncstatus.StatusUpdater) t.syncStatus = a.MustComponent(syncstatus.CName).(syncstatus.StatusUpdater)
t.peerManager = a.MustComponent(peermanager.ManagerName).(peermanager.PeerManager) t.peerManager = a.MustComponent(peermanager.ManagerName).(peermanager.PeerManager)
t.objectSync = a.MustComponent(objectsync.CName).(objectsync.ObjectSync) t.objectSync = a.MustComponent(objectsync.CName).(objectsync.ObjectSync)
t.syncClient = a.MustComponent(syncclient.CName).(syncclient.SyncClient)
t.log = log.With(zap.String("spaceId", t.spaceId)) t.log = log.With(zap.String("spaceId", t.spaceId))
return nil return nil
} }