Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

A little bit of cleanup #1286

Merged
merged 3 commits into from
Apr 3, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/workflows/typos.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,4 @@ jobs:

steps:
- uses: actions/checkout@v4
- uses: crate-ci/typos@v1.19.0
- uses: crate-ci/typos@v1.20.1
6 changes: 6 additions & 0 deletions .typos.toml
Original file line number Diff line number Diff line change
@@ -1,3 +1,9 @@
[default]
extend-ignore-re = [
# Mock token
";iuani;ansd;ifgjbnai;sdjfgb",
]

[files]
extend-exclude = [
# Typo "achived" is a breaking change to fix
Expand Down
1 change: 1 addition & 0 deletions bridge/svix-bridge-types/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -128,6 +128,7 @@ impl TransformerJob {
}

/// Effectively a black box to the supervisor.
///
/// Plugins should run until they are done, and likely they should not be "done" until the program
/// exits.
#[async_trait]
Expand Down
2 changes: 1 addition & 1 deletion go/internal/openapi/api_event_type.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -17392,7 +17392,7 @@
},
"/api/v1/event-type/import/openapi/": {
"post": {
"description": "Given an OpenAPI spec, create new or update existing event types.\nIf an existing `archived` event type is updated, it will be unarchvied.\n\nThe importer will convert all webhooks found in the either the `webhooks` or `x-webhooks`\ntop-level.",
"description": "Given an OpenAPI spec, create new or update existing event types.\nIf an existing `archived` event type is updated, it will be unarchived.\n\nThe importer will convert all webhooks found in the either the `webhooks` or `x-webhooks`\ntop-level.",
"operationId": "v1.event-type.import-openapi",
"parameters": [
{
Expand Down
2 changes: 1 addition & 1 deletion server/svix-server/src/queue/redis.rs
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ async fn new_pair_inner(
}
}

// Redis durationns are given in integer numbers of milliseconds, so the pending_duration (the
// Redis durations are given in integer numbers of milliseconds, so the pending_duration (the
// time in which a task is allowed to be processing before being restarted) must be converted to
// one.
let pending_duration: i64 = pending_duration
Expand Down
8 changes: 4 additions & 4 deletions server/svix-server/tests/it/e2e_attempt.rs
Original file line number Diff line number Diff line change
Expand Up @@ -894,13 +894,13 @@ async fn test_pagination_by_msg() {
}

/// Adds 5ms to a [`chrono::DateTime`] for testing `before` and `after`
fn add_5ms<T: chrono::TimeZone>(dur: chrono::DateTime<T>) -> chrono::DateTime<T> {
dur + chrono::Duration::from_std(std::time::Duration::from_millis(5)).unwrap()
fn add_5ms<T: chrono::TimeZone>(ts: chrono::DateTime<T>) -> chrono::DateTime<T> {
ts + chrono::Duration::from_std(std::time::Duration::from_millis(5)).unwrap()
}

/// Subtracts 5ms to a [`chrono::DateTime`] for testing `before` and `after`
fn sub_5ms<T: chrono::TimeZone>(dur: chrono::DateTime<T>) -> chrono::DateTime<T> {
dur - chrono::Duration::from_std(std::time::Duration::from_millis(5)).unwrap()
fn sub_5ms<T: chrono::TimeZone>(ts: chrono::DateTime<T>) -> chrono::DateTime<T> {
ts - chrono::Duration::from_std(std::time::Duration::from_millis(5)).unwrap()
}
}

Expand Down
Loading