Skip to content

Commit 409b9e4

Browse files
liukangHiddenWorld-lk
authored andcommitted
update code style
1 parent c28f0c1 commit 409b9e4

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

eventmesh-retry/eventmesh-retry-kafka/src/main/java/org/apache/eventmesh/retry/kafka/KafkaRetryStrategyImpl.java

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,12 @@
2424
import org.apache.eventmesh.common.protocol.http.common.ProtocolKey;
2525
import org.apache.eventmesh.retry.api.conf.RetryConfiguration;
2626
import org.apache.eventmesh.retry.api.strategy.RetryStrategy;
27+
2728
import java.util.Objects;
29+
2830
import io.cloudevents.CloudEvent;
2931
import io.cloudevents.core.builder.CloudEventBuilder;
32+
3033
import lombok.SneakyThrows;
3134
import lombok.extern.slf4j.Slf4j;
3235

@@ -47,22 +50,21 @@ private void sendMessageBack(final RetryConfiguration configuration) {
4750
String bizSeqNo = Objects.requireNonNull(event.getExtension(ProtocolKey.ClientInstanceKey.BIZSEQNO.getKey())).toString();
4851
String uniqueId = Objects.requireNonNull(event.getExtension(ProtocolKey.ClientInstanceKey.UNIQUEID.getKey())).toString();
4952
CloudEvent retryEvent = CloudEventBuilder.from(event)
50-
// .withExtension(ProtocolKey.TOPIC, topic)
51-
.withSubject(topic)
52-
.build();
53+
.withSubject(topic)
54+
.build();
5355
Producer producer = configuration.getProducer();
5456
producer.publish(retryEvent, new SendCallback() {
5557

5658
@Override
5759
public void onSuccess(SendResult sendResult) {
5860
log.info("consumer:{} consume success,, bizSeqno:{}, uniqueId:{}",
59-
consumerGroupName, bizSeqNo, uniqueId);
61+
consumerGroupName, bizSeqNo, uniqueId);
6062
}
6163

6264
@Override
6365
public void onException(OnExceptionContext context) {
6466
log.warn("consumer:{} consume fail, sendMessageBack, bizSeqno:{}, uniqueId:{}",
65-
consumerGroupName, bizSeqNo, uniqueId, context.getException());
67+
consumerGroupName, bizSeqNo, uniqueId, context.getException());
6668
}
6769
});
6870
}

0 commit comments

Comments
 (0)