Removed unused enums/params

This commit is contained in:
cloudwithax 2022-10-12 18:13:45 -04:00
parent e504088da1
commit 8a9425c662
2 changed files with 0 additions and 7 deletions

View File

@ -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:

View File

@ -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