1
0
mirror of https://github.com/redis/node-redis.git synced 2025-08-06 02:15:48 +03:00

fix v4 benchmarks

This commit is contained in:
leibale
2021-12-07 11:07:31 -05:00
parent 73f6e6b86c
commit ccf0662062
2 changed files with 10 additions and 2 deletions

View File

@@ -1,7 +1,11 @@
import { createClient } from '@node-redis/client'; import { createClient } from '@node-redis/client';
export default async (host) => { export default async (host) => {
const client = createClient({ host }); const client = createClient({
socket: {
host
}
});
await client.connect(); await client.connect();

View File

@@ -1,7 +1,11 @@
import { createClient } from '@node-redis/client'; import { createClient } from '@node-redis/client';
export default async (host, { randomString }) => { export default async (host, { randomString }) => {
const client = createClient({ host }); const client = createClient({
socket: {
host
}
});
await client.connect(); await client.connect();