From 9e9da054d4306c9e07e1e218c1fb984a9285a577 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rub=C3=A9n=20Fern=C3=A1ndez?= <9885219+Rubenfer@users.noreply.github.com> Date: Thu, 22 Dec 2022 18:37:28 +0100 Subject: [PATCH] change Lock to NIOLock (#204) --- Sources/Redis/RedisStorage.swift | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Sources/Redis/RedisStorage.swift b/Sources/Redis/RedisStorage.swift index 5d1c637..2c28183 100644 --- a/Sources/Redis/RedisStorage.swift +++ b/Sources/Redis/RedisStorage.swift @@ -1,4 +1,5 @@ import Vapor +import NIOConcurrencyHelpers extension Application { private struct RedisStorageKey: StorageKey { @@ -17,7 +18,7 @@ extension Application { } final class RedisStorage { - private var lock: Lock + private var lock: NIOLock private var configurations: [RedisID: RedisConfiguration] fileprivate var pools: [PoolKey: RedisConnectionPool] { willSet {