Removed unused enums/params
This commit is contained in:
parent
e504088da1
commit
8a9425c662
|
|
@ -32,9 +32,6 @@ class NodeAlgorithm(Enum):
|
||||||
NodeAlgorithm.by_ping returns a node based on it's latency,
|
NodeAlgorithm.by_ping returns a node based on it's latency,
|
||||||
preferring a node with the lowest response time
|
preferring a node with the lowest response time
|
||||||
|
|
||||||
NodeAlgorithm.by_region returns a node based on its voice region,
|
|
||||||
which the region is specified by the user in the method as an arg.
|
|
||||||
This method will only work if you set a voice region when you create a node.
|
|
||||||
|
|
||||||
NodeAlgorithm.by_players return a nodes based on how many players it has.
|
NodeAlgorithm.by_players return a nodes based on how many players it has.
|
||||||
This algorithm prefers nodes with the least amount of players.
|
This algorithm prefers nodes with the least amount of players.
|
||||||
|
|
@ -42,7 +39,6 @@ class NodeAlgorithm(Enum):
|
||||||
|
|
||||||
# We don't have to define anything special for these, since these just serve as flags
|
# We don't have to define anything special for these, since these just serve as flags
|
||||||
by_ping = "BY_PING"
|
by_ping = "BY_PING"
|
||||||
by_region = "BY_REGION"
|
|
||||||
by_players = "BY_PLAYERS"
|
by_players = "BY_PLAYERS"
|
||||||
|
|
||||||
def __str__(self) -> str:
|
def __str__(self) -> str:
|
||||||
|
|
|
||||||
|
|
@ -466,9 +466,6 @@ class NodePool:
|
||||||
Use NodeAlgorithm.by_ping if you want to get the best node
|
Use NodeAlgorithm.by_ping if you want to get the best node
|
||||||
based on the node's latency.
|
based on the node's latency.
|
||||||
|
|
||||||
Use NodeAlgorithm.by_region if you want to get the best node
|
|
||||||
based on the node's voice region. This method will only work
|
|
||||||
if you set a voice region when you create a node.
|
|
||||||
|
|
||||||
Use NodeAlgorithm.by_players if you want to get the best node
|
Use NodeAlgorithm.by_players if you want to get the best node
|
||||||
based on how players it has. This method will return a node with
|
based on how players it has. This method will return a node with
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue