mirror of
https://github.com/bitwarden/server.git
synced 2025-04-07 05:58:13 -05:00
Only set channel prefix. Use machine name on counter (#687)
This commit is contained in:
parent
d6ed8291e6
commit
b106fd22fb
@ -1,4 +1,5 @@
|
|||||||
using System.Threading.Tasks;
|
using System;
|
||||||
|
using System.Threading.Tasks;
|
||||||
using Bit.Core;
|
using Bit.Core;
|
||||||
using Bit.Core.Jobs;
|
using Bit.Core.Jobs;
|
||||||
using Microsoft.Extensions.Logging;
|
using Microsoft.Extensions.Logging;
|
||||||
@ -21,7 +22,7 @@ namespace Bit.Notifications.Jobs
|
|||||||
protected override Task ExecuteJobAsync(IJobExecutionContext context)
|
protected override Task ExecuteJobAsync(IJobExecutionContext context)
|
||||||
{
|
{
|
||||||
_logger.LogInformation(Constants.BypassFiltersEventId,
|
_logger.LogInformation(Constants.BypassFiltersEventId,
|
||||||
"Connection count: {0}", _connectionCounter.GetCount());
|
"Connection count for server {0}: {1}", Environment.MachineName, _connectionCounter.GetCount());
|
||||||
return Task.FromResult(0);
|
return Task.FromResult(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -62,7 +62,6 @@ namespace Bit.Notifications
|
|||||||
signalRServerBuilder.AddStackExchangeRedis(globalSettings.Notifications.RedisConnectionString,
|
signalRServerBuilder.AddStackExchangeRedis(globalSettings.Notifications.RedisConnectionString,
|
||||||
options =>
|
options =>
|
||||||
{
|
{
|
||||||
options.Configuration.ClientName = "Notifications";
|
|
||||||
options.Configuration.ChannelPrefix = "Notifications";
|
options.Configuration.ChannelPrefix = "Notifications";
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user