Skip to content

Commit

Permalink
Use continuous clock for memory persist driver (#497)
Browse files Browse the repository at this point in the history
* Use continuous clock for memory persist driver

* Change default clock to continuous
  • Loading branch information
adam-fowler authored Jul 1, 2024
1 parent cb39477 commit 0e6de71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Sources/Hummingbird/Storage/MemoryPersistDriver.swift
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ import NIOCore

/// In memory driver for persist system for storing persistent cross request key/value pairs
public actor MemoryPersistDriver<C: Clock>: PersistDriver where C.Duration == Duration {
public init(_ clock: C = .suspending) {
public init(_ clock: C = .continuous) {
self.values = [:]
self.clock = clock
}
Expand Down

0 comments on commit 0e6de71

Please sign in to comment.