mirror of
https://github.com/diamondburned/arikawa.git
synced 2025-11-29 15:56:48 +00:00
Gateway: Allow for longer timeouts
This commit is contained in:
parent
c1885067d7
commit
5b37b2ab0d
|
|
@ -15,7 +15,7 @@ import (
|
||||||
var (
|
var (
|
||||||
// WSTimeout is the timeout for connecting and writing to the Websocket,
|
// WSTimeout is the timeout for connecting and writing to the Websocket,
|
||||||
// before Gateway cancels and fails.
|
// 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
|
// 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.
|
// make space for the first Event: Ready or Resumed.
|
||||||
WSBuffer = 10
|
WSBuffer = 10
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue