Skip to content

Commit

Permalink
add explicit undici dispatcher (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-smart authored Aug 8, 2024
1 parent c7ff030 commit abacb11
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/Discord.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@ import { DiscordConfig, Intents } from "dfx"
import { Config, Layer } from "effect"

export const DiscordLive = DiscordIxLive.pipe(
Layer.provideMerge(NodeHttpClient.layerUndici),
Layer.provideMerge(
NodeHttpClient.layerUndiciWithoutDispatcher.pipe(
Layer.provide(NodeHttpClient.dispatcherLayer),
),
),
Layer.provide(NodeSocket.layerWebSocketConstructor),
Layer.provide(
DiscordConfig.layerConfig({
Expand Down

0 comments on commit abacb11

Please sign in to comment.