mirror of https://github.com/zulip/zulip.git
codespell: Fix spelling mistakes caught by codespell.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
This commit is contained in:
parent
8aea76448f
commit
e53e3af0f6
|
@ -26,3 +26,5 @@ uper
|
|||
slac
|
||||
couldn
|
||||
ges
|
||||
assertIn
|
||||
thirdparty
|
||||
|
|
|
@ -162,7 +162,7 @@ a lasting record for the community. “We even used a Zulip topic to coordinate
|
|||
for lunch, to let people have their uninterrupted focus time,” John says.
|
||||
|
||||
Since 2015, John has stayed connected with the RC alumni community on Zulip. “We
|
||||
have a channel for alumni checkins, where each alum uses a dedicated topic to
|
||||
have a channel for alumni check-ins, where each alum uses a dedicated topic to
|
||||
post updates,” John explains. Some alums drop by weekly, while others might come
|
||||
around once a year. “You can leave a note, and it’s OK if your friend reads it
|
||||
a few months later,” John says. “Compare that with Slack, where if someone
|
||||
|
|
|
@ -72,7 +72,7 @@ export function status_from_raw(raw: RawPresence): PresenceStatus {
|
|||
}
|
||||
*/
|
||||
|
||||
/* Mark users as offline after this many seconds since their last checkin, */
|
||||
/* Mark users as offline after this many seconds since their last check-in, */
|
||||
const offline_threshold_secs = realm.server_presence_offline_threshold_seconds;
|
||||
|
||||
function age(timestamp = 0): number {
|
||||
|
|
|
@ -468,7 +468,7 @@ function open_edit_form_modal(this: HTMLElement): void {
|
|||
const $profile_field_form = $("#edit-custom-profile-field-form-" + field_id);
|
||||
|
||||
// If it exceeds or equals the max limit, we are disabling option for display custom
|
||||
// profile field on user card and adding tooptip, unless the field is already checked.
|
||||
// profile field on user card and adding tooltip, unless the field is already checked.
|
||||
if (display_in_profile_summary_fields_limit_reached && !field.display_in_profile_summary) {
|
||||
$profile_field_form
|
||||
.find("input[name=display_in_profile_summary]")
|
||||
|
|
|
@ -129,9 +129,9 @@ def do_update_user_presence(
|
|||
# sending an immediate presence update via the events system that this user is now online,
|
||||
# rather than waiting for other clients to poll the presence update.
|
||||
# Sending these presence update events adds load to the system, so we only want to do this
|
||||
# if the user has missed a couple regular presence checkins
|
||||
# if the user has missed a couple regular presence check-ins
|
||||
# (so their state is at least 2 * PRESENCE_PING_INTERVAL_SECS + 10 old),
|
||||
# and also is under the risk of being shown by clients as offline before the next regular presence checkin
|
||||
# and also is under the risk of being shown by clients as offline before the next regular presence check-in
|
||||
# (so at least `settings.OFFLINE_THRESHOLD_SECS - settings.PRESENCE_PING_INTERVAL_SECS - 10`).
|
||||
# These two values happen to be the same in the default configuration.
|
||||
seconds=settings.OFFLINE_THRESHOLD_SECS - settings.PRESENCE_PING_INTERVAL_SECS - 10
|
||||
|
|
|
@ -226,10 +226,10 @@ class TornadoInMemoryRateLimiterBackend(RateLimiterBackend):
|
|||
"""
|
||||
Returns a tuple of `(rate_limited, time_till_free)`.
|
||||
For simplicity, we have loosened the semantics here from
|
||||
- each key may make atmost `count * (t / window)` request within any t
|
||||
- each key may make at most `count * (t / window)` request within any t
|
||||
time interval.
|
||||
to
|
||||
- each key may make atmost `count * [(t / window) + 1]` request within
|
||||
- each key may make at most `count * [(t / window) + 1]` request within
|
||||
any t time interval.
|
||||
Thus, we only need to store reset_times for each key which will be less
|
||||
memory-intensive. This also has the advantage that you can only ever
|
||||
|
|
|
@ -2659,7 +2659,7 @@ class AnalyticsBouncerTest(BouncerTestCase):
|
|||
)
|
||||
|
||||
# Restore the deleted realm to verify that the bouncer correctly handles that
|
||||
# by togglin off .realm_locally_deleted.
|
||||
# by toggling off .realm_locally_deleted.
|
||||
restored_zephyr_realm = do_create_realm("zephyr", "Zephyr")
|
||||
restored_zephyr_realm.uuid = deleted_realm_uuid
|
||||
restored_zephyr_realm.save()
|
||||
|
|
Loading…
Reference in New Issue