From 0e6de7141f4feda30c319c1a14047b7057f38db5 Mon Sep 17 00:00:00 2001 From: Adam Fowler Date: Mon, 1 Jul 2024 08:49:06 +0100 Subject: [PATCH] Use continuous clock for memory persist driver (#497) * Use continuous clock for memory persist driver * Change default clock to continuous --- Sources/Hummingbird/Storage/MemoryPersistDriver.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Sources/Hummingbird/Storage/MemoryPersistDriver.swift b/Sources/Hummingbird/Storage/MemoryPersistDriver.swift index af2222bb9..4f8200225 100644 --- a/Sources/Hummingbird/Storage/MemoryPersistDriver.swift +++ b/Sources/Hummingbird/Storage/MemoryPersistDriver.swift @@ -18,7 +18,7 @@ import NIOCore /// In memory driver for persist system for storing persistent cross request key/value pairs public actor MemoryPersistDriver: PersistDriver where C.Duration == Duration { - public init(_ clock: C = .suspending) { + public init(_ clock: C = .continuous) { self.values = [:] self.clock = clock }