We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 851045a commit 65ef61cCopy full SHA for 65ef61c
hikari/impl/buckets.py
@@ -261,9 +261,7 @@ async def __aexit__(
261
@property
262
def is_unknown(self) -> bool:
263
"""Whether it represents an UNKNOWN bucket."""
264
- # A quicker ".startswith". Since this is an insanely hot path, we want this
265
- # to be as quick as possible
266
- return self.name[: len(UNKNOWN_HASH)] == UNKNOWN_HASH
+ return self.name.startswith(UNKNOWN_HASH)
267
268
def release(self) -> None:
269
"""Release the lock on the bucket."""
0 commit comments