Skip to content

Commit c57b825

Browse files
authored
Fix typos in comments (#7816)
1 parent e3c9ff1 commit c57b825

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

sky/utils/auth_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
# We intentionally not have the ssh key pair to be stored in
1818
# ~/.sky/api_server/clients, i.e. sky.server.common.API_SERVER_CLIENT_DIR,
1919
# because ssh key pair need to persist across API server restarts, while
20-
# the former dir is empheral.
20+
# the former dir is ephemeral.
2121
_SSH_KEY_PATH_PREFIX = '~/.sky/clients/{user_hash}/ssh'
2222

2323

sky/utils/common.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
def refresh_server_id() -> None:
3232
"""Refresh the server id.
3333
34-
This function is used to ensure the server id is read from the authorative
34+
This function is used to ensure the server id is read from the authoritative
3535
source.
3636
"""
3737
global SERVER_ID

sky/utils/common_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1115,7 +1115,7 @@ def release_memory():
11151115
gc.collect()
11161116
if sys.platform.startswith('linux'):
11171117
# Will fail on musl (alpine), but at least it works on our
1118-
# offical docker images.
1118+
# official docker images.
11191119
libc = ctypes.CDLL('libc.so.6')
11201120
return libc.malloc_trim(0)
11211121
return 0

sky/utils/db/db_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -185,7 +185,7 @@ def add_column_to_table_sqlalchemy(
185185
pass
186186
else:
187187
raise
188-
#postgressql
188+
#postgresql
189189
except sqlalchemy_exc.ProgrammingError as e:
190190
if 'already exists' in str(e):
191191
pass

sky/utils/locks.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def force_unlock(self) -> None:
274274
cursor.execute('SELECT pg_advisory_unlock(%s)', (self._lock_key,))
275275
result = cursor.fetchone()[0]
276276
if result:
277-
# The lock is held by current routine and unlock suceed
277+
# The lock is held by current routine and unlock succeed
278278
self._connection.commit()
279279
self._acquired = False
280280
return

0 commit comments

Comments
 (0)