fixed typos

This commit is contained in:
Crussader 2021-10-27 17:29:16 +04:00 committed by GitHub
parent 22b490829a
commit d564b620bc
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 4 additions and 4 deletions

View File

@ -31,7 +31,7 @@ from .utils import (
ClientType, ClientType,
ExponentialBackoff, ExponentialBackoff,
NodeStats, NodeStats,
NodeAlgorithims, NodeAlgorithms,
) )
if TYPE_CHECKING: if TYPE_CHECKING:
@ -478,7 +478,7 @@ class NodePool:
def get_node( def get_node(
cls, *, cls, *,
identifier: str = None, identifier: str = None,
algorithim : NodeAlgorithims = NodeAlgorithims.base, algorithim : NodeAlgorithms = NodeAlgorithms.base,
args=(), **kwargs args=(), **kwargs
) -> Node: ) -> Node:
@ -496,11 +496,11 @@ class NodePool:
return available_nodes.get(identifier, None) return available_nodes.get(identifier, None)
@classmethod @classmethod
def get_player(cls, guildId) -> Union[Player, None]: def get_player(cls, guild_id) -> Union[Player, None]:
"""Retruns the Exact Player object after Searching all the Nodes. """Retruns the Exact Player object after Searching all the Nodes.
""" """
for node in [node for node in cls._nodes.values() if node._available]: for node in [node for node in cls._nodes.values() if node._available]:
if (player := node.players.get(guildId, None)): if (player := node.players.get(guild_id, None)):
return player return player
return None return None