Fix not taking lock

This commit is contained in:
mcrakhman 2022-12-12 17:30:21 +01:00
parent b71360ec01
commit e0c1e6f19d
No known key found for this signature in database
GPG Key ID: DED12CFEF5B8396B

View File

@ -129,7 +129,9 @@ func (d *diffSyncer) pingTreesInCache(ctx context.Context, trees []string) {
// it may be already there (i.e. loaded) // it may be already there (i.e. loaded)
// and build func will not be called, thus we won't sync the tree // and build func will not be called, thus we won't sync the tree
// therefore we just do it manually // therefore we just do it manually
syncTree.Lock()
syncTree.Ping() syncTree.Ping()
syncTree.Unlock()
} }
} }