Skip to content

Commit

Permalink
Speculative: Switch event scheduler to bounded elastic
Browse files Browse the repository at this point in the history
  • Loading branch information
tterrag1098 committed Dec 2, 2020
1 parent 1ad2f47 commit 5f8a7f4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/main/java/com/tterrag/k9/K9.java
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,9 @@ public K9(Arguments args) {

public Mono<Void> start() {
GatewayBootstrap<GatewayOptions> gateway = client.gateway()
.setEventDispatcher(EventDispatcher.builder()
.eventScheduler(Schedulers.boundedElastic())
.build())
.setEnabledIntents(IntentSet.of(
Intent.GUILDS, Intent.GUILD_MEMBERS, Intent.GUILD_PRESENCES,
Intent.GUILD_MESSAGES, Intent.GUILD_MESSAGE_REACTIONS,
Expand Down

0 comments on commit 5f8a7f4

Please sign in to comment.