Skip to content

Commit

Permalink
[Slack] Decrease delay when getting messages (apache#6197)
Browse files Browse the repository at this point in the history
  • Loading branch information
avano authored and zhfeng committed Jun 18, 2024
1 parent 0441b94 commit 84816ef
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public class SlackResource {
@GET
@Produces(MediaType.APPLICATION_JSON)
public SlackMessageResponse getSlackMessages() throws Exception {
Message message = consumerTemplate.receiveBody("slack://test-channel?maxResults=1&" + getSlackAuthParams(),
Message message = consumerTemplate.receiveBody("slack://test-channel?maxResults=1&delay=1000&" + getSlackAuthParams(),
5000L, Message.class);
return new SlackMessageResponse(message.getText(), message.getBlocks() != null ? message.getBlocks().size() : 0);
}
Expand Down

0 comments on commit 84816ef

Please sign in to comment.