Fix sync client
This commit is contained in:
parent
815bc7927d
commit
a89a325d6c
@ -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) {
|
||||||
|
|||||||
@ -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
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user