Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
beetlex-io committed Jun 14, 2024
1 parent 5e4017d commit 56a1e54
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions frameworks/CSharp/beetlex/PlatformBenchmarks/DBRaw.cs
Original file line number Diff line number Diff line change
Expand Up @@ -31,12 +31,16 @@ public RawDb(ConcurrentRandom random, string connectionString)

public async Task<World> LoadSingleQueryRow()
{
using var connection = await _dataSource.OpenConnectionAsync();
using (var connection = await _dataSource.OpenConnectionAsync())
{

var (cmd, _) = CreateReadCommand(connection);
using var command = cmd;
var (cmd, _) = CreateReadCommand(connection);
using (var command = cmd)
{

return await ReadSingleRow(cmd);
return await ReadSingleRow(cmd);
}
}
}

public Task<CachedWorld[]> LoadCachedQueries(int count)
Expand Down

0 comments on commit 56a1e54

Please sign in to comment.