Skip to content

Commit

Permalink
chore: fix some comments (#18485)
Browse files Browse the repository at this point in the history
Signed-off-by: pengbanban <[email protected]>
  • Loading branch information
pengbanban authored Sep 13, 2024
1 parent b6b1808 commit 3d916bd
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion benchmarks/streamable.py
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ def compare_results(
) -> None:
old_version, new_version = pop_data("version", old=old, new=new)
if old_version != new_version:
sys.exit(f"version missmatch: old: {old_version} vs new: {new_version}")
sys.exit(f"version mismatch: old: {old_version} vs new: {new_version}")
old_commit_hash, new_commit_hash = pop_data("commit_hash", old=old, new=new)
for data, modes in new.items():
if data not in old:
Expand Down
2 changes: 1 addition & 1 deletion build_scripts/remove_brew_rpaths.sh
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ if [[ -n "$nt_output" ]]; then
echo "$nt_output" | grep "no LC_RPATH load command with path:" >/dev/null
# shellcheck disable=SC2181
if [[ $? -ne 0 ]]; then
>&2 echo "An unexpected error occured when running install_name_tool:"
>&2 echo "An unexpected error occurred when running install_name_tool:"
>&2 echo "$nt_output"
fi
fi
Expand Down
2 changes: 1 addition & 1 deletion chia/server/server.py
Original file line number Diff line number Diff line change
Expand Up @@ -525,7 +525,7 @@ async def connection_closed(
self, connection: WSChiaConnection, ban_time: int, closed_connection: bool = False
) -> None:
# closed_connection is true if the callback is being called with a connection that was previously closed
# in this case we still want to do the banning logic and remove the conection from the list
# in this case we still want to do the banning logic and remove the connection from the list
# but the other cleanup should already have been done so we skip that

if is_localhost(connection.peer_info.host) and ban_time != 0:
Expand Down
2 changes: 1 addition & 1 deletion chia/util/action_scope.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ class ActionScope(Generic[_T_SideEffects, _T_Config]):
When the action is closed, the state is still available and can be committed elsewhere or discarded.
Utilizes a "resource manager" to hold the state in order to take advantage of rollbacks and prevent concurrent tasks
from interferring with each other.
from interfering with each other.
"""

_resource_manager: ResourceManager
Expand Down

0 comments on commit 3d916bd

Please sign in to comment.