From e5ca91588c6c6ec0df656e72038b0f1ae46c6eca Mon Sep 17 00:00:00 2001 From: Valeriy Van Date: Sun, 19 May 2024 10:57:18 +0300 Subject: [PATCH] Fix warning in Telegram-bot-example/main.swift (#28) * Fix warning in Telegram-bot-example/main.swift * Remove force from force try --- Telegram-bot-example/Sources/Telegram-bot-example/main.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Telegram-bot-example/Sources/Telegram-bot-example/main.swift b/Telegram-bot-example/Sources/Telegram-bot-example/main.swift index 80c3372..59ef441 100644 --- a/Telegram-bot-example/Sources/Telegram-bot-example/main.swift +++ b/Telegram-bot-example/Sources/Telegram-bot-example/main.swift @@ -4,7 +4,7 @@ import TelegramVaporBot var env = try Environment.detect() try LoggingSystem.bootstrap(from: &env) let eventLoop: EventLoopGroup = MultiThreadedEventLoopGroup(numberOfThreads: System.coreCount * 4) -let app: Application = .init(env, Application.EventLoopGroupProvider.shared(eventLoop)) +let app: Application = try await Application.make(env, Application.EventLoopGroupProvider.shared(eventLoop)) let TGBOT: TGBotConnection = .init() defer { app.shutdown() }