mirror of
https://github.com/ppy/osu
synced 2024-12-17 12:25:19 +00:00
Remove misleading comments
This commit is contained in:
parent
feef4b1890
commit
f1dbcc4f1a
@ -548,12 +548,10 @@ namespace osu.Game.Beatmaps
|
|||||||
|
|
||||||
public void UpdateContent(BeatmapInfo beatmapInfo, Stream newData)
|
public void UpdateContent(BeatmapInfo beatmapInfo, Stream newData)
|
||||||
{
|
{
|
||||||
// let's only allow one concurrent update at a time for now.
|
|
||||||
var context = createContext();
|
var context = createContext();
|
||||||
|
|
||||||
using (var transaction = context.BeginTransaction())
|
using (var transaction = context.BeginTransaction())
|
||||||
{
|
{
|
||||||
// create local stores so we can isolate and thread safely, and share a context/transaction.
|
|
||||||
var setInfo = beatmapInfo.BeatmapSet;
|
var setInfo = beatmapInfo.BeatmapSet;
|
||||||
var existingSetFileInfo = setInfo.Files.First(f => f.FileInfo.Hash == beatmapInfo.Hash);
|
var existingSetFileInfo = setInfo.Files.First(f => f.FileInfo.Hash == beatmapInfo.Hash);
|
||||||
var existingFileInfo = existingSetFileInfo.FileInfo;
|
var existingFileInfo = existingSetFileInfo.FileInfo;
|
||||||
|
Loading…
Reference in New Issue
Block a user