Skip to content

Commit d388ca6

Browse files
authored
Update credentials
1 parent f5a5d52 commit d388ca6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

worker/src/Worker/Program.cs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public static int Main(string[] args)
1616
{
1717
try
1818
{
19-
var pgsql = OpenDbConnection("Server=db;Username=postgres;");
19+
var pgsql = OpenDbConnection("Server=db;Username=postgres_user;Password=postgres_password;");
2020
var redisConn = OpenRedisConnection("redis");
2121
var redis = redisConn.GetDatabase();
2222

@@ -42,7 +42,7 @@ public static int Main(string[] args)
4242
if (!pgsql.State.Equals(System.Data.ConnectionState.Open))
4343
{
4444
Console.WriteLine("Reconnecting DB");
45-
pgsql = OpenDbConnection("Server=db;Username=postgres;");
45+
pgsql = OpenDbConnection("Server=db;Username=postgres_user;Password=postgres_password;");
4646
}
4747
else
4848
{ // Normal +1 vote requested
@@ -109,7 +109,7 @@ private static ConnectionMultiplexer OpenRedisConnection(string hostname)
109109
try
110110
{
111111
Console.Error.WriteLine("Connecting to redis");
112-
return ConnectionMultiplexer.Connect(ipAddress);
112+
return ConnectionMultiplexer.Connect(ipAddress + ",password=redis_password");
113113
}
114114
catch (RedisConnectionException)
115115
{

0 commit comments

Comments
 (0)