Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
28 changes: 14 additions & 14 deletions currencies.json
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@
"core": false,
"versions": [
{
"v": "3.1053.0"
"v": "3.1054.0"
}
]
},
Expand All @@ -89,7 +89,7 @@
"core": false,
"versions": [
{
"v": "3.1053.0"
"v": "3.1054.0"
}
]
},
Expand All @@ -105,7 +105,7 @@
"core": false,
"versions": [
{
"v": "3.1053.0"
"v": "3.1054.0"
}
]
},
Expand All @@ -121,7 +121,7 @@
"core": false,
"versions": [
{
"v": "3.1053.0"
"v": "3.1054.0"
}
]
},
Expand All @@ -137,7 +137,7 @@
"core": false,
"versions": [
{
"v": "3.1053.0"
"v": "3.1054.0"
}
]
},
Expand All @@ -153,7 +153,7 @@
"core": false,
"versions": [
{
"v": "3.1053.0"
"v": "3.1054.0"
}
]
},
Expand All @@ -169,7 +169,7 @@
"core": false,
"versions": [
{
"v": "3.1053.0"
"v": "3.1054.0"
}
]
},
Expand All @@ -185,7 +185,7 @@
"core": false,
"versions": [
{
"v": "3.1053.0"
"v": "3.1054.0"
}
]
},
Expand All @@ -201,7 +201,7 @@
"core": false,
"versions": [
{
"v": "3.1053.0"
"v": "3.1054.0"
}
]
},
Expand All @@ -217,7 +217,7 @@
"core": false,
"versions": [
{
"v": "9.4.1",
"v": "9.4.2",
"node": ">=20"
},
{
Expand Down Expand Up @@ -620,7 +620,7 @@
"core": false,
"versions": [
{
"v": "5.10.1"
"v": "5.11.0"
}
]
},
Expand Down Expand Up @@ -780,7 +780,7 @@
"core": false,
"versions": [
{
"v": "9.6.2",
"v": "9.6.3",
"node": ">=20.19"
},
{
Expand Down Expand Up @@ -835,7 +835,7 @@
"core": false,
"versions": [
{
"v": "3.22.3"
"v": "3.22.4"
},
{
"v": "3.11.4"
Expand Down Expand Up @@ -1061,7 +1061,7 @@
"core": false,
"versions": [
{
"v": "15.0.1",
"v": "15.0.2",
"node": ">=22"
},
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,15 @@ log(logPrefix);
await delay(1000);

try {
const client = new ioredis(`//${process.env.INSTANA_CONNECT_REDIS}`);
const redisHost = process.env.INSTANA_CONNECT_REDIS;
const client = new ioredis(`redis://${redisHost}`);

client.on('error', err => {
log('IORedis client error:', err);
});

client.on('ready', () => {
log(`Connected to client 1 (${process.env.INSTANA_CONNECT_REDIS}).`);
log(`Connected to client 1 (${redisHost}).`);
});

const multi = await client.multi().set('key', 'value').get('key').exec();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,18 @@
'use strict';

module.exports = async function (ioredis, log) {
const client = new ioredis(`//${process.env.INSTANA_CONNECT_REDIS}`);
const client2 = new ioredis(`//${process.env.INSTANA_CONNECT_REDIS_ALTERNATIVE}`);
const redisHost = process.env.INSTANA_CONNECT_REDIS;
const redisHost2 = process.env.INSTANA_CONNECT_REDIS_ALTERNATIVE;
const client = new ioredis(`redis://${redisHost}`);
const client2 = new ioredis(`redis://${redisHost2}`);

return new Promise(resolve => {
let clientReady = false;
let client2Ready = false;

client.on('ready', () => {
clientReady = true;
log(`Connected to client 1 (${process.env.INSTANA_CONNECT_REDIS}).`);
log(`Connected to client 1 (${redisHost}).`);

if (client2Ready) {
resolve({
Expand All @@ -26,7 +28,7 @@ module.exports = async function (ioredis, log) {

client2.on('ready', () => {
client2Ready = true;
log(`Connected to client 2 (${process.env.INSTANA_CONNECT_REDIS_ALTERNATIVE}).`);
log(`Connected to client 2 (${redisHost2}).`);

if (clientReady) {
resolve({
Expand Down