mirror of
https://github.com/aljazceru/btcpayserver.git
synced 2025-12-19 06:54:19 +01:00
Use hangfire in-memory provider until the postgres binding to hangfire get updated.
This commit is contained in:
@@ -41,10 +41,10 @@ namespace BTCPayServer.Data
|
|||||||
|
|
||||||
public void ConfigureHangfireBuilder(IGlobalConfiguration builder)
|
public void ConfigureHangfireBuilder(IGlobalConfiguration builder)
|
||||||
{
|
{
|
||||||
if (_Type == DatabaseType.Sqlite)
|
//if (_Type == DatabaseType.Sqlite)
|
||||||
builder.UseMemoryStorage(); //Sql provider does not support multiple workers
|
builder.UseMemoryStorage(); //Sql provider does not support multiple workers
|
||||||
else if (_Type == DatabaseType.Postgres)
|
//else if (_Type == DatabaseType.Postgres)
|
||||||
builder.UsePostgreSqlStorage(_ConnectionString);
|
// builder.UsePostgreSqlStorage(_ConnectionString);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user