Skip to content

Commit

Permalink
Fix typos (#546)
Browse files Browse the repository at this point in the history
  • Loading branch information
jayvdb authored Feb 12, 2024
1 parent 2152dad commit e382968
Show file tree
Hide file tree
Showing 7 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion awscrt/mqtt.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,7 @@ class Connection(NativeResource):
The `session_present` bool in the connection callback informs
whether an existing session was successfully resumed.
If an existing session is resumed, the server remembers previous subscriptions
and sends mesages (with QoS1 or higher) that were published while the client was offline.
and sends messages (with QoS1 or higher) that were published while the client was offline.
on_connection_interrupted: Optional callback invoked whenever the MQTT connection is lost.
The MQTT client will automatically attempt to reconnect.
Expand Down
2 changes: 1 addition & 1 deletion awscrt/mqtt5.py
Original file line number Diff line number Diff line change
Expand Up @@ -2015,7 +2015,7 @@ def new_connection(self, on_connection_interrupted=None, on_connection_resumed=N
protocol_operation_timeout_ms=self.adapter_options.ack_timeout_secs * 1000,
socket_options=self.adapter_options.socket_options,

# For the arugments below, set it to `None` will directly use the options from mqtt5 client underlying.
# For the arguments below, set it to `None` will directly use the options from mqtt5 client underlying.
will=None,
username=None,
password=None,
Expand Down
2 changes: 1 addition & 1 deletion codebuild/mqtt5_test_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ else

return 1
fi
# Set the certificate and key paths (absolute paths for best compatbility)
# Set the certificate and key paths (absolute paths for best compatibility)
export AWS_TEST_MQTT5_CERTIFICATE_FILE="${PWD}/crt_certificate.pem"
export AWS_TEST_MQTT5_KEY_FILE="${PWD}/crt_privatekey.pem"

Expand Down
2 changes: 1 addition & 1 deletion mqtt_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ def on_receive_message(topic, payload, dup, qos, retain, **kwargs):
assert(publish_results['packet_id'] == publish_packet_id)

# Receive Message
print("Waiting to receive messsage")
print("Waiting to receive message")
assert(receive_event.wait(TIMEOUT))
assert(receive_results['topic'] == TOPIC)
assert(receive_results['payload'].decode() == MESSAGE)
Expand Down
2 changes: 1 addition & 1 deletion s3_benchmark.py
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ def on_body(offset, chunk, **kwargs):
# if not os.path.exists(file_name):
# open(file_name, 'a').close()
# with open(file_name, 'rb+') as f:
# # seems like the seek here may srew up the file.
# # seems like the seek here may screw up the file.
# f.seek(offset)
# f.write(chunk)

Expand Down
2 changes: 1 addition & 1 deletion source/module.h
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ int PyObject_GetAttrAsIntEnum(PyObject *o, const char *class_name, const char *a

/* Checks if the named attribute is None, converts it to the specified type, then stores
* the value and returns a pointer to the stored value or NULL if it doesn't exist or fails.
* If conversion cannot occur a python exception is set (check PyExc_Occured()) */
* If conversion cannot occur a python exception is set (check PyExc_Occurred()) */
uint64_t *PyObject_GetAsOptionalUint64(
PyObject *o,
const char *class_name,
Expand Down
2 changes: 1 addition & 1 deletion test/test_s3.py
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ def test_cross_proc(self):
process = Process(target=cross_proc_task)
process.start()
process.join()
# aquiring this lock in a sub-process should fail since we
# acquiring this lock in a sub-process should fail since we
# already hold the lock in this process.
self.assertNotEqual(0, process.exitcode)

Expand Down

0 comments on commit e382968

Please sign in to comment.