Skip to content

Commit

Permalink
checkstyle
Browse files Browse the repository at this point in the history
  • Loading branch information
piotrrzysko committed Aug 10, 2023
1 parent 4b02f81 commit b3aba69
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -53,11 +53,11 @@
import pl.allegro.tech.hermes.consumers.consumer.sender.timeout.FutureAsyncTimeout;
import pl.allegro.tech.hermes.consumers.consumer.trace.MetadataAppender;

import javax.jms.Message;
import java.io.IOException;
import java.util.List;
import java.util.Optional;
import java.util.concurrent.ScheduledExecutorService;
import javax.jms.Message;

@Configuration
@EnableConfigurationProperties({
Expand Down Expand Up @@ -261,7 +261,7 @@ public EndpointAddressResolver interpolatingEndpointAddressResolver(UriInterpola

@Bean
public FutureAsyncTimeout futureAsyncTimeoutFactory(InstrumentedExecutorServiceFactory executorFactory,
SenderAsyncTimeoutProperties senderAsyncTimeoutProperties) {
SenderAsyncTimeoutProperties senderAsyncTimeoutProperties) {
ScheduledExecutorService timeoutExecutorService = executorFactory.getScheduledExecutorService(
"async-timeout",
senderAsyncTimeoutProperties.getThreadPoolSize(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -16,13 +16,13 @@
import pl.allegro.tech.hermes.tracker.consumers.MessageMetadata;
import pl.allegro.tech.hermes.tracker.consumers.Trackers;

import javax.annotation.concurrent.NotThreadSafe;
import java.util.ArrayDeque;
import java.util.ArrayList;
import java.util.List;
import java.util.Optional;
import java.util.Queue;
import java.util.Set;
import javax.annotation.concurrent.NotThreadSafe;

import static com.google.common.base.Preconditions.checkArgument;
import static pl.allegro.tech.hermes.consumers.consumer.Message.message;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ private void markSuccess(Message message, SubscriptionName subscription, Message
metrics.subscriptions().successes(subscription).increment();
metrics.subscriptions().throughputInBytes(subscription).increment(message.getSize());
metrics.subscriptions().httpAnswerCounter(subscription, result.getStatusCode()).increment();
metrics.subscriptions().inflightTimeInMillisHistogram(subscription).record(System.currentTimeMillis() - message.getReadingTimestamp());
metrics.subscriptions().inflightTimeInMillisHistogram(subscription)
.record(System.currentTimeMillis() - message.getReadingTimestamp());
}
}

0 comments on commit b3aba69

Please sign in to comment.