Browse Source

The private static variable _isHealthy has no meaning in a singleton. If you use multi-host mode, there will be status detection problems (#982)

master
lbhnrg2021 3 years ago
committed by GitHub
parent
commit
1ef8cf5166
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions
  1. +1
    -1
      src/DotNetCore.CAP/Internal/IConsumerRegister.Default.cs

+ 1
- 1
src/DotNetCore.CAP/Internal/IConsumerRegister.Default.cs View File

@@ -35,7 +35,7 @@ namespace DotNetCore.CAP.Internal
private BrokerAddress _serverAddress;
private Task _compositeTask;
private bool _disposed;
private static bool _isHealthy = true;
private bool _isHealthy = true;

// diagnostics listener
// ReSharper disable once InconsistentNaming


Loading…
Cancel
Save