diff --git a/common/commonspace/synctree/syncclient.go b/common/commonspace/synctree/syncclient.go index 61bba80b..d8a721ec 100644 --- a/common/commonspace/synctree/syncclient.go +++ b/common/commonspace/synctree/syncclient.go @@ -7,13 +7,10 @@ import ( "github.com/anytypeio/go-anytype-infrastructure-experiments/common/commonspace/syncservice" "github.com/anytypeio/go-anytype-infrastructure-experiments/common/nodeconf" "github.com/anytypeio/go-anytype-infrastructure-experiments/common/pkg/acl/treechangeproto" - "github.com/anytypeio/go-anytype-infrastructure-experiments/common/pkg/ocache" - "time" ) type SyncClient interface { RequestFactory - ocache.ObjectLastUsage BroadcastAsync(message *treechangeproto.TreeSyncMessage) (err error) BroadcastAsyncOrSendResponsible(message *treechangeproto.TreeSyncMessage) (err error) SendAsync(peerId string, message *treechangeproto.TreeSyncMessage, replyId string) (err error) @@ -42,10 +39,6 @@ func newSyncClient( } } -func (s *syncClient) LastUsage() time.Time { - return s.StreamPool.LastUsage() -} - func (s *syncClient) BroadcastAsync(message *treechangeproto.TreeSyncMessage) (err error) { s.notifyIfNeeded(message) objMsg, err := marshallTreeMessage(message, message.RootChange.Id, "")