Skip to content

Commit

Permalink
pubsub sink: wrap bytes instead of copying (close #28)
Browse files Browse the repository at this point in the history
  • Loading branch information
istreeter committed Nov 20, 2023
1 parent 810450b commit da14e58
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ object PubsubSink {
for {
uuid <- Async[F].delay(UUID.randomUUID)
message = PubsubMessage.newBuilder
.setData(ByteString.copyFrom(bytes))
.setData(ByteString.wrap(bytes))
.setMessageId(uuid.toString)
.putAllAttributes(attributes.asJava)
.build
Expand Down

0 comments on commit da14e58

Please sign in to comment.