Skip to content

Commit

Permalink
Remove unused awaits
Browse files Browse the repository at this point in the history
  • Loading branch information
felixschlegel committed Jun 28, 2023
1 parent 07bda4b commit 83d7077
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ await withThrowingTaskGroup(of: Void.self) { group in

// Task receiving acknowledgements
group.addTask {
let messageID = try await producer.send(
let messageID = try producer.send(
KafkaProducerMessage(
topic: "topic-name",
value: "Hello, World!"
Expand Down
2 changes: 1 addition & 1 deletion Tests/IntegrationTests/SwiftKafkaTests.swift
Original file line number Diff line number Diff line change
Expand Up @@ -273,7 +273,7 @@ final class SwiftKafkaTests: XCTestCase {
var messageIDs = Set<KafkaProducerMessageID>()

for message in messages {
messageIDs.insert(try await producer.send(message))
messageIDs.insert(try producer.send(message))
}

var acknowledgedMessages = Set<KafkaAcknowledgedMessage>()
Expand Down

0 comments on commit 83d7077

Please sign in to comment.