Skip to content

Commit b2e8500

Browse files
committed
Speculative: Switch event scheduler to bounded elastic
1 parent 1ad2f47 commit b2e8500

File tree

1 file changed

+3
-0
lines changed
  • src/main/java/com/tterrag/k9

1 file changed

+3
-0
lines changed

src/main/java/com/tterrag/k9/K9.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,6 +126,9 @@ public K9(Arguments args) {
126126

127127
public Mono<Void> start() {
128128
GatewayBootstrap<GatewayOptions> gateway = client.gateway()
129+
.setEventDispatcher(EventDispatcher.builder()
130+
.eventScheduler(Schedulers.boundedElastic())
131+
.build())
129132
.setEnabledIntents(IntentSet.of(
130133
Intent.GUILDS, Intent.GUILD_MEMBERS, Intent.GUILD_PRESENCES,
131134
Intent.GUILD_MESSAGES, Intent.GUILD_MESSAGE_REACTIONS,

0 commit comments

Comments
 (0)