From 3d916bd25dc55bde5228d8e2c8761eb2efd48d51 Mon Sep 17 00:00:00 2001 From: pengbanban Date: Sat, 14 Sep 2024 00:52:32 +0900 Subject: [PATCH] chore: fix some comments (#18485) Signed-off-by: pengbanban --- benchmarks/streamable.py | 2 +- build_scripts/remove_brew_rpaths.sh | 2 +- chia/server/server.py | 2 +- chia/util/action_scope.py | 2 +- 4 files changed, 4 insertions(+), 4 deletions(-) diff --git a/benchmarks/streamable.py b/benchmarks/streamable.py index 6ad57886fae2..2d41af918145 100644 --- a/benchmarks/streamable.py +++ b/benchmarks/streamable.py @@ -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: diff --git a/build_scripts/remove_brew_rpaths.sh b/build_scripts/remove_brew_rpaths.sh index 1d98a4e7673b..5d47ce1bb37d 100644 --- a/build_scripts/remove_brew_rpaths.sh +++ b/build_scripts/remove_brew_rpaths.sh @@ -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 diff --git a/chia/server/server.py b/chia/server/server.py index 11dcf2d0d048..04e2948985e3 100644 --- a/chia/server/server.py +++ b/chia/server/server.py @@ -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: diff --git a/chia/util/action_scope.py b/chia/util/action_scope.py index 64b6193ed71a..03172115d06f 100644 --- a/chia/util/action_scope.py +++ b/chia/util/action_scope.py @@ -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