Skip to content

Commit 9e12fe4

Browse files
author
Vytautas Kasparavičius
committed
#122 removed using for object we're not responsible for
1 parent 270a1c7 commit 9e12fe4

File tree

2 files changed

+4
-7
lines changed

2 files changed

+4
-7
lines changed

src/Hangfire.PostgreSql/Hangfire.PostgreSql.csproj

+3-3
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@
1414
<PackageReleaseNotes>https://github.com/frankhommers/Hangfire.PostgreSql/releases</PackageReleaseNotes>
1515
<PackageProjectUrl>http://hmm.rs/Hangfire.PostgreSql</PackageProjectUrl>
1616
<PackageLicenseUrl></PackageLicenseUrl>
17-
<Version>1.6.1</Version>
18-
<FileVersion>1.6.1</FileVersion>
19-
<AssemblyVersion>1.6.1</AssemblyVersion>
17+
<Version>1.6.2</Version>
18+
<FileVersion>1.6.2</FileVersion>
19+
<AssemblyVersion>1.6.2</AssemblyVersion>
2020
<GeneratePackageOnBuild>True</GeneratePackageOnBuild>
2121
<PackageLicenseFile>LICENSE.md</PackageLicenseFile>
2222
<RepositoryUrl>https://github.com/frankhommers/Hangfire.PostgreSql</RepositoryUrl>

src/Hangfire.PostgreSql/PostgreSqlMonitoringApi.cs

+1-4
Original file line numberDiff line numberDiff line change
@@ -466,10 +466,7 @@ private IPersistentJobQueueMonitoringApi GetQueueApi(
466466

467467
private T UseConnection<T>(Func<NpgsqlConnection, T> action)
468468
{
469-
using (var connection = GetConnection())
470-
{
471-
return action(connection);
472-
}
469+
return action(GetConnection());
473470
}
474471

475472
private JobList<EnqueuedJobDto> EnqueuedJobs(NpgsqlConnection connection, IEnumerable<long> jobIds)

0 commit comments

Comments
 (0)