diff --git a/benchmark/bench.js b/benchmark/bench.js index b30ad32..364a603 100644 --- a/benchmark/bench.js +++ b/benchmark/bench.js @@ -1,6 +1,6 @@ 'use strict' -const redisStoreFactory = require('connect-redis') +const RedisStore = require('connect-redis').default const Fastify = require('fastify') const Redis = require('ioredis') const fileStoreFactory = require('session-file-store') @@ -16,7 +16,6 @@ function createServer (sessionPlugin, cookiePlugin, storeType) { let store if (storeType === 'redis') { - const RedisStore = redisStoreFactory(sessionPlugin) if (!redisClient) { redisClient = new Redis() }