mirror of
https://github.com/btcpayserver/btcpayserver.git
synced 2025-03-03 17:36:59 +01:00
Use hangfire in-memory provider until the postgres binding to hangfire get updated.
This commit is contained in:
parent
66a68d6180
commit
a3c46c8f67
1 changed files with 4 additions and 4 deletions
|
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue