Hello
i start to get this Error:
/app/api/database/connect.go:28 +0x15b
main.main()
/app/main.go:73 +0x4a
panic: dial tcp: lookup containers-us-west-181.railway.app: i/o timeout
somtimes is stop after 1 min somtimes is take 5 min
here is the conntion:
func InitRedis() (*redis.Storage, error) {
port, err := strconv.Atoi(os.Getenv("REDISPORT"))
if err != nil {
port = 6379
}
storage := redis.New(redis.Config{
Host: os.Getenv("REDISHOST"),
Port: port,
Username: os.Getenv("REDISUSER"),
Password: os.Getenv("REDISPASSWORD"),
Database: 0,
Reset: false,
TLSConfig: nil,
PoolSize: 10 * runtime.GOMAXPROCS(0),
})
return storage, nil
}
i have add the log file