Skip to content

Commit

Permalink
fix: replaced MinioClient to IMinioClient in HealthChecks (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
lukashev-di authored Jun 24, 2024
1 parent e70f172 commit d263bb8
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/Minio.AspNetCore.HealthChecks/MinioHealthCheck.cs
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@ namespace Minio.AspNetCore.HealthChecks
{
public class MinioHealthCheck : IHealthCheck
{
private readonly MinioClient minioClient;
private readonly IMinioClient minioClient;
private readonly string bucket;

public MinioHealthCheck(MinioClient minioClient, string bucket)
public MinioHealthCheck(IMinioClient minioClient, string bucket)
{
this.minioClient = minioClient;
this.bucket = bucket;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ public static class MinioHealthChecksExtensions
/// </summary>
public static IHealthChecksBuilder AddMinio(
this IHealthChecksBuilder builder,
Func<IServiceProvider, MinioClient> factory,
Func<IServiceProvider, IMinioClient> factory,
string name = "minio",
string bucket = "health",
HealthStatus? failureStatus = null,
Expand Down

0 comments on commit d263bb8

Please sign in to comment.