Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't re-request gateway URL when autosharding
When autosharding, the `GET /gateway/bot` URL would be requested to determine shard count. Then, `Client::start_connection` would be called, passing the shard settings. This, in turn, would call `rest::get_gateway`. This was essentially calling for the same URL twice. Instead, have each of the different sharding methods request the gateway URL themselves, and pass into `Client::start_connection`.
- Loading branch information
Austin Hellyer
committed
Jan 27, 2017
1 parent
4c80387
commit e891ebe
Showing
1 changed file
with
13 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters