Skip to content

Commit

Permalink
build: add unit tests for incremental fetch (#28)
Browse files Browse the repository at this point in the history
* docs: update flamegraph

* build: add unit tests

* ci: update merge conditions

* feat: make fetch records more controllable.

* chore: remove dead code.

* fix(fetch): fetch records in order.

* build: add unit tests for incremental fetch

* chore(deps): bump `kafka-protocol` to 0.5.1
  • Loading branch information
iamazy authored Feb 24, 2023
1 parent 7c8d463 commit 4aaf42b
Show file tree
Hide file tree
Showing 15 changed files with 1,466 additions and 590 deletions.
4 changes: 2 additions & 2 deletions .mergify.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,8 @@ pull_request_rules:
conditions:
- or:
- and:
- "#approved-reviews-by>=0"
- "#changes-requested-reviews-by=0"
- "#approved-reviews-by>=1"
- "#changes-requested-reviews-by=1"
- -draft
- check-success=fmt
- check-success=test
Expand Down
6 changes: 4 additions & 2 deletions Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ fnv = "1"
futures = "0.3"
fxhash = "0.2"
indexmap = "1"
kafka-protocol = { git = "https://github.com/iamazy/kafka-protocol-rs", branch = "trunk"}
kafka-protocol = { git = "https://github.com/iamazy/kafka-protocol-rs", rev = "d8a289bbdebd71f89d52838810303902a7368773"}
native-tls = "0.2"
pin-project-lite = "0.2"
rand = "0.8"
Expand All @@ -37,9 +37,11 @@ tokio-util = { version = "0.7", features = ["codec"], optional = true }
tokio-native-tls = { version = "0.3", optional = true }
tracing = "0.1"
url = "2.1"
uuid = "0.8"
uuid = "1.3"

[dev-dependencies]
rand = "0.8"
pretty_assertions = "1"
tokio = { version = "1", features = ["full"] }
tracing-subscriber = "0.3"

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ Examples can be found in [`examples`](https://github.com/iamazy/kafkas/blob/main

## Flame graph

<img style="width:800px" src="./benchmark/flamegraph.svg" alt="flamegraph"/>
<img style="width:800px" src="benches/flamegraph.svg" alt="flamegraph"/>

## Rust version requirements

Expand Down
Loading

0 comments on commit 4aaf42b

Please sign in to comment.