1
0
Fork 0
mirror of https://github.com/diamondburned/arikawa.git synced 2024-11-27 17:23:00 +00:00

Gateway: Allow for longer timeouts

This commit is contained in:
diamondburned 2020-07-14 18:47:52 -07:00
parent c1885067d7
commit 5b37b2ab0d

View file

@ -15,7 +15,7 @@ import (
var (
// WSTimeout is the timeout for connecting and writing to the Websocket,
// before Gateway cancels and fails.
WSTimeout = time.Minute
WSTimeout = 5 * time.Minute
// WSBuffer is the size of the Event channel. This has to be at least 1 to
// make space for the first Event: Ready or Resumed.
WSBuffer = 10