From ebc1a64429777a2ce221c3049263ee46f84b76a1 Mon Sep 17 00:00:00 2001 From: nick <889427+shicholas@users.noreply.github.com> Date: Sat, 30 Nov 2024 20:21:19 -0800 Subject: [PATCH] Update README.md Use new non-deprecated API --- README.md | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/README.md b/README.md index 4fb54ce..fcf9417 100644 --- a/README.md +++ b/README.md @@ -77,9 +77,11 @@ struct Application { let service2 = FooService() let serviceGroup = ServiceGroup( - services: [service1, service2], - configuration: .init(gracefulShutdownSignals: [.sigterm]), - logger: logger + configuration: .init( + services: [service1, service2], + gracefulShutdownSignals: [.sigterm], + logger: logger + ) ) try await serviceGroup.run() }