mirror of
https://github.com/PluralKit/PluralKit.git
synced 2026-02-13 01:00:12 +00:00
Extract Database to interface
This commit is contained in:
parent
70df9cd893
commit
90ac186183
27 changed files with 76 additions and 54 deletions
|
|
@ -23,7 +23,7 @@ namespace PluralKit.Bot
|
|||
private IMetrics _metrics;
|
||||
private CpuStatService _cpu;
|
||||
|
||||
private Database _db;
|
||||
private IDatabase _db;
|
||||
|
||||
private WebhookCacheService _webhookCache;
|
||||
|
||||
|
|
@ -31,7 +31,7 @@ namespace PluralKit.Bot
|
|||
|
||||
private ILogger _logger;
|
||||
|
||||
public PeriodicStatCollector(DiscordShardedClient client, IMetrics metrics, ILogger logger, WebhookCacheService webhookCache, DbConnectionCountHolder countHolder, CpuStatService cpu, Database db)
|
||||
public PeriodicStatCollector(DiscordShardedClient client, IMetrics metrics, ILogger logger, WebhookCacheService webhookCache, DbConnectionCountHolder countHolder, CpuStatService cpu, IDatabase db)
|
||||
{
|
||||
_client = client;
|
||||
_metrics = metrics;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue