Skip to content

Commit

Permalink
this is a very meaningful commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
burdoto committed Oct 4, 2024
1 parent e8dbefb commit bf48c96
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions src/main/java/org/comroid/api/net/Rabbit.java
Original file line number Diff line number Diff line change
Expand Up @@ -149,9 +149,7 @@ private void handleRabbitData(String $, Delivery content) {
@SneakyThrows
public void send(T data) {
try {
var body = SoftDepend.type("com.fasterxml.jackson.databind.ObjectMapper")
.map($ -> converter.toBytes(data))
.assertion();
var body = converter.toBytes(data);
touch().basicPublish(exchange, routingKey, null, body);
} catch (Throwable t) {
Debug.log(log, "Could not send data to rabbit", t);
Expand Down

0 comments on commit bf48c96

Please sign in to comment.