Skip to content

Commit adcd922

Browse files
bug(email-connector): spotless:apply
1 parent 6dd2b6e commit adcd922

File tree

1 file changed

+9
-11
lines changed
  • connectors/email/src/main/java/io/camunda/connector/email/client/jakarta/inbound

1 file changed

+9
-11
lines changed

connectors/email/src/main/java/io/camunda/connector/email/client/jakarta/inbound/PollingManager.java

+9-11
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ private void pollAllAndProcess(PollAll pollAll) {
122122
Arrays.stream(messages).forEach(message -> this.processMail((IMAPMessage) message, pollAll));
123123
} catch (Exception e) {
124124
this.connectorContext.log(
125-
Activity.level(Severity.ERROR).tag("mail-polling").message(e.getMessage()));
125+
Activity.level(Severity.ERROR).tag("mail-polling").message(e.getMessage()));
126126
this.connectorContext.cancel(new ConnectorException(e.getMessage(), e));
127127
}
128128
}
@@ -135,20 +135,18 @@ private void pollUnseenAndProcess(PollUnseen pollUnseen) {
135135
.forEach(message -> this.processMail((IMAPMessage) message, pollUnseen));
136136
} catch (Exception e) {
137137
this.connectorContext.log(
138-
Activity.level(Severity.ERROR).tag("mail-polling").message(e.getMessage()));
138+
Activity.level(Severity.ERROR).tag("mail-polling").message(e.getMessage()));
139139
this.connectorContext.cancel(
140-
ConnectorRetryException.builder()
141-
.cause(e)
142-
.message(e.getMessage())
143-
.retries(2)
144-
.backoffDuration(Duration.of(3, ChronoUnit.SECONDS))
145-
.build());
140+
ConnectorRetryException.builder()
141+
.cause(e)
142+
.message(e.getMessage())
143+
.retries(2)
144+
.backoffDuration(Duration.of(3, ChronoUnit.SECONDS))
145+
.build());
146146
}
147147
}
148148

149-
private void manageException(Exception e) {
150-
151-
}
149+
private void manageException(Exception e) {}
152150

153151
private void processMail(IMAPMessage message, PollingConfig pollingConfig) {
154152
// Setting `peek` to true prevents the library to trigger any side effects when reading the

0 commit comments

Comments
 (0)