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 d7ad458 commit d2af593Copy full SHA for d2af593
1 file changed
src/sink/gcp_pubsub.rs
@@ -157,12 +157,9 @@ impl Sink for GcpPubsubSink {
157
158
// Publish all messages concurrently and collect awaiters.
159
// The publisher batches messages internally (default: 10ms, 100 messages, or 1MiB).
160
- let awaiters = futures::future::join_all(
161
- messages
162
- .into_iter()
163
- .map(|msg| self.publisher.publish(msg)),
164
- )
165
- .await;
+ let awaiters =
+ futures::future::join_all(messages.into_iter().map(|msg| self.publisher.publish(msg)))
+ .await;
166
167
// Wait for all messages to be confirmed concurrently.
168
let futures: Vec<_> = awaiters
0 commit comments