We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddef31d commit 8371d00Copy full SHA for 8371d00
Sources/App/configure.swift
@@ -81,7 +81,8 @@ public func configure(_ app: Application) async throws -> String {
81
// Setup Redis connection
82
do {
83
app.redis.configuration = try RedisConfiguration(hostname: "redis")
84
- do { // write-read test across nodes
+ 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() {
0 commit comments