Skip to content

Commit

Permalink
Fix warning in Telegram-bot-example/main.swift (#28)
Browse files Browse the repository at this point in the history
* Fix warning in Telegram-bot-example/main.swift

* Remove force from force try
  • Loading branch information
valeriyvan authored May 19, 2024
1 parent f90d10d commit e5ca915
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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() }
Expand Down

0 comments on commit e5ca915

Please sign in to comment.