Skip to content

Commit 6ade103

Browse files
committed
Remove test write-read
1 parent 8371d00 commit 6ade103

File tree

1 file changed

+0
-8
lines changed

1 file changed

+0
-8
lines changed

Sources/App/configure.swift

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,14 +81,6 @@ public func configure(_ app: Application) async throws -> String {
8181
// Setup Redis connection
8282
do {
8383
app.redis.configuration = try RedisConfiguration(hostname: "redis")
84-
Task { // write-read test across nodes
85-
try await Task.sleep(for: .seconds(5)) // give redis some spin-up time
86-
let key = "startup-time-\(app.http.server.configuration.hostname)"
87-
try await app.redis.set(.init(key), to: "\(Date.now)").get()
88-
if let value = try await app.redis.get(.init(key), as: String.self).get() {
89-
app.logger.info("Redis set/get result: \(value)")
90-
}
91-
}
9284
} catch {
9385
app.logger.warning("Failed to configure Redis, caching disabled. Error: \(error)")
9486
}

0 commit comments

Comments
 (0)