File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,7 @@ public static int Main(string[] args)
16
16
{
17
17
try
18
18
{
19
- var pgsql = OpenDbConnection ( "Server=db;Username=postgres ;" ) ;
19
+ var pgsql = OpenDbConnection ( "Server=db;Username=postgres_user;Password=postgres_password ;" ) ;
20
20
var redisConn = OpenRedisConnection ( "redis" ) ;
21
21
var redis = redisConn . GetDatabase ( ) ;
22
22
@@ -42,7 +42,7 @@ public static int Main(string[] args)
42
42
if ( ! pgsql . State . Equals ( System . Data . ConnectionState . Open ) )
43
43
{
44
44
Console . WriteLine ( "Reconnecting DB" ) ;
45
- pgsql = OpenDbConnection ( "Server=db;Username=postgres ;" ) ;
45
+ pgsql = OpenDbConnection ( "Server=db;Username=postgres_user;Password=postgres_password ;" ) ;
46
46
}
47
47
else
48
48
{ // Normal +1 vote requested
@@ -109,7 +109,7 @@ private static ConnectionMultiplexer OpenRedisConnection(string hostname)
109
109
try
110
110
{
111
111
Console . Error . WriteLine ( "Connecting to redis" ) ;
112
- return ConnectionMultiplexer . Connect ( ipAddress ) ;
112
+ return ConnectionMultiplexer . Connect ( ipAddress + ",password=redis_password" ) ;
113
113
}
114
114
catch ( RedisConnectionException )
115
115
{
You can’t perform that action at this time.
0 commit comments