diff options
| author | Austin Hellyer <[email protected]> | 2017-01-27 12:32:48 -0800 |
|---|---|---|
| committer | Austin Hellyer <[email protected]> | 2017-01-27 12:32:48 -0800 |
| commit | e891ebeba43eb87c985db4e031b8bf76dcaca67b (patch) | |
| tree | af5a74f2d5b53686f040ac7e5e4641ef1473028c /examples/06_command_framework | |
| parent | Thanks github (diff) | |
| download | serenity-e891ebeba43eb87c985db4e031b8bf76dcaca67b.tar.xz serenity-e891ebeba43eb87c985db4e031b8bf76dcaca67b.zip | |
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`.
Diffstat (limited to 'examples/06_command_framework')
0 files changed, 0 insertions, 0 deletions