diff --git a/commonspace/object/tree/synctree/synctree.go b/commonspace/object/tree/synctree/synctree.go index e579a8c8..8c000d80 100644 --- a/commonspace/object/tree/synctree/synctree.go +++ b/commonspace/object/tree/synctree/synctree.go @@ -128,7 +128,7 @@ func buildSyncTree(ctx context.Context, peerId string, deps BuildDeps) (t SyncTr headUpdate := syncTree.syncClient.CreateHeadUpdate(t, nil) // send to everybody, because everybody should know that the node or client got new tree syncTree.syncClient.Broadcast(headUpdate) - deps.SyncStatus.HeadsApply(peerId, syncTree.Id(), syncTree.Heads(), true) + deps.SyncStatus.ObjectReceive(peerId, syncTree.Id(), syncTree.Heads()) } return } diff --git a/commonspace/syncstatus/noop.go b/commonspace/syncstatus/noop.go index 731ee500..660f46a0 100644 --- a/commonspace/syncstatus/noop.go +++ b/commonspace/syncstatus/noop.go @@ -23,6 +23,9 @@ func (n *noOpSyncStatus) Name() (name string) { func (n *noOpSyncStatus) HeadsChange(treeId string, heads []string) { } +func (n *noOpSyncStatus) ObjectReceive(senderId, treeId string, heads []string) { +} + func (n *noOpSyncStatus) HeadsApply(senderId, treeId string, heads []string, allAdded bool) { } diff --git a/commonspace/syncstatus/syncstatus.go b/commonspace/syncstatus/syncstatus.go index 321ccc0b..cc991dfa 100644 --- a/commonspace/syncstatus/syncstatus.go +++ b/commonspace/syncstatus/syncstatus.go @@ -11,5 +11,6 @@ type StatusUpdater interface { HeadsChange(treeId string, heads []string) HeadsReceive(senderId, treeId string, heads []string) + ObjectReceive(senderId, treeId string, heads []string) HeadsApply(senderId, treeId string, heads []string, allAdded bool) }