From a89a325d6c8095164d3daea7f6ed3f844897090a Mon Sep 17 00:00:00 2001 From: mcrakhman Date: Fri, 2 Jun 2023 01:08:56 +0200 Subject: [PATCH] Fix sync client --- commonspace/objectsync/syncclient/syncclient.go | 4 +++- commonspace/objecttreebuilder/treebuilder.go | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/commonspace/objectsync/syncclient/syncclient.go b/commonspace/objectsync/syncclient/syncclient.go index 99360eab..69cf4224 100644 --- a/commonspace/objectsync/syncclient/syncclient.go +++ b/commonspace/objectsync/syncclient/syncclient.go @@ -33,7 +33,9 @@ type syncClient struct { } func New() SyncClient { - return &syncClient{} + return &syncClient{ + RequestFactory: &requestFactory{}, + } } func (s *syncClient) Init(a *app.App) (err error) { diff --git a/commonspace/objecttreebuilder/treebuilder.go b/commonspace/objecttreebuilder/treebuilder.go index e63aca65..f77c6ff5 100644 --- a/commonspace/objecttreebuilder/treebuilder.go +++ b/commonspace/objecttreebuilder/treebuilder.go @@ -87,6 +87,7 @@ func (t *treeBuilder) Init(a *app.App) (err error) { t.syncStatus = a.MustComponent(syncstatus.CName).(syncstatus.StatusUpdater) t.peerManager = a.MustComponent(peermanager.ManagerName).(peermanager.PeerManager) 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)) return nil }