Skip to content

Commit a6d6f58

Browse files
authored
fix: minor bug in registering callback (#14)
* fix: minor bug in registering callback * fix: minor spelling changes * chore: minor cleanups
1 parent 33ccd39 commit a6d6f58

16 files changed

Lines changed: 136 additions & 104 deletions

.github/workflows/ci.yml

Lines changed: 2 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@ name: CI
22

33
on:
44
push:
5-
branches: [ main ]
5+
branches: [main]
66
pull_request:
7-
branches: [ main ]
7+
branches: [main]
88

99
env:
1010
CARGO_TERM_COLOR: always
@@ -48,38 +48,6 @@ jobs:
4848
- name: Run cargo test with all features
4949
run: cargo test --all-features --verbose
5050

51-
features:
52-
name: Feature Matrix Tests
53-
runs-on: ubuntu-latest
54-
strategy:
55-
matrix:
56-
features:
57-
- ""
58-
- "--features migrate"
59-
- "--features async-std-comp"
60-
- "--features async-std-comp-native-tls"
61-
- "--features tokio-comp"
62-
- "--features tokio-comp-native-tls"
63-
- "--all-features"
64-
steps:
65-
- name: Checkout sources
66-
uses: actions/checkout@v4
67-
68-
- name: Install Rust toolchain
69-
uses: dtolnay/rust-toolchain@stable
70-
71-
- name: Cache cargo registry
72-
uses: actions/cache@v4
73-
with:
74-
path: |
75-
~/.cargo/registry
76-
~/.cargo/git
77-
target
78-
key: ${{ runner.os }}-cargo-features-${{ hashFiles('**/Cargo.lock') }}
79-
80-
- name: Test with features
81-
run: cargo test ${{ matrix.features }} --verbose
82-
8351
fmt:
8452
name: Rustfmt
8553
runs-on: ubuntu-latest

.sqlx/query-19af6c8445ee82d9c4a54100b2b2dffad5e4a7992174c82a3ef1937e4d97cc71.json

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-1cd760004a2341bbded38a4fa431eaa74232f6f6f3121c7086a0b138195e9b0d.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-40a420986a37c9db2fc35b161092d6063f186242ca1808cfae9d6477c7d8687b.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-61843a18bffdee192cd01f1537f0f03d75403970fc8347d0f017f04d746b2b98.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-a43052e877930a522d6a63789935653f4fe06d10361c555f8ade4b65589520bc.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

.sqlx/query-b44b1058179869ec68916630635a9f1318e707f1ee1acd8662952d0e0e67200b.json

Lines changed: 0 additions & 12 deletions
This file was deleted.

.sqlx/query-d7aefe54cd7388c208fff5b946390f217b575f0ca464a5faddd0fe2d51793983.json

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Cargo.toml

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
[package]
22
name = "apalis-sqlite"
3-
version = "1.0.0-alpha.5"
3+
version = "1.0.0-alpha.6"
44
authors = ["Njuguna Mureithi <mureithinjuguna@gmail.com>"]
55
readme = "README.md"
66
edition = "2024"
@@ -27,8 +27,8 @@ features = ["chrono", "sqlite"]
2727
[dependencies]
2828
serde = { version = "1", features = ["derive"] }
2929
serde_json = { version = "1" }
30-
apalis-core = { version = "1.0.0-alpha.8", features = ["sleep"] }
31-
apalis-sql = { version = "1.0.0-alpha.8" }
30+
apalis-core = { version = "1.0.0-alpha.9", features = ["sleep"] }
31+
apalis-sql = { version = "1.0.0-alpha.9" }
3232
log = "0.4.21"
3333
futures = "0.3.30"
3434
tokio = { version = "1", features = ["rt", "net"], optional = true }
@@ -42,9 +42,11 @@ bytes = "1.1.0"
4242

4343
[dev-dependencies]
4444
tokio = { version = "1", features = ["macros", "rt-multi-thread"] }
45-
apalis-core = { version = "1.0.0-alpha.8", features = ["test-utils"] }
45+
apalis = { version = "1.0.0-alpha.9" }
4646
apalis-sqlite = { path = ".", features = ["migrate", "tokio-comp"] }
47-
apalis-workflow = { version = "0.1.0-alpha.5" }
47+
apalis-workflow = { version = "0.1.0-alpha.6" }
48+
49+
futures-util = "0.3.31"
4850

4951
[package.metadata.docs.rs]
5052
# defines the configuration attribute `docsrs`

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ async fn main() {
105105
```rust,no_run
106106
#[tokio::main]
107107
async fn main() {
108-
let workflow = WorkFlow::new("odd-numbers-workflow")
108+
let workflow = Workflow::new("odd-numbers-workflow")
109109
.then(|a: usize| async move {
110110
Ok::<_, WorkflowError>((0..=a).collect::<Vec<_>>())
111111
})

0 commit comments

Comments
 (0)