Skip to content

Commit

Permalink
fixed build errors after upgrading clickhouse-rs
Browse files Browse the repository at this point in the history
  • Loading branch information
zliang-min authored Sep 27, 2024
2 parents f6e0bd8 + 425f6a5 commit 35a6216
Show file tree
Hide file tree
Showing 4 changed files with 8 additions and 7 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/rust-audit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,8 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Audit Check # https://github.com/rustsec/audit-check/issues/2
uses: rustsec/audit-check@master
- run: cargo update
- name: Audit Check
uses: rustsec/audit-check@v2.0.0
with:
token: ${{ secrets.GITHUB_TOKEN }}
token: ${{ secrets.GITHUB_TOKEN }}
2 changes: 1 addition & 1 deletion CODEOWNERS
Validating CODEOWNERS rules …
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
# This should make it easy to add new rules without breaking existing ones.

# Global rule:
* @marvin-hansen @jovezhong
* @marvin-hansen @jovezhong @zliang-min
2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ path = "examples/remove/main.rs"


[dependencies]
clickhouse = { version = "0.13", features = ["watch"] }
clickhouse = { version = "0.13", features = ["inserter", "watch"] }
clickhouse-derive = { version = "0.2" }
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
serde = { version = "1.0.196", features = ["derive"] }
Expand Down
4 changes: 2 additions & 2 deletions src/lib/insert.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,10 +90,10 @@ impl ProtonClient {
/// .inserter("table_name")
/// .await
/// .expect("Failed to create inserter")
/// .with_max_entries(100_000); // The maximum number of rows in one INSERT statement.
/// .with_max_rows(100_000); // The maximum number of rows in one INSERT statement.
///
/// for i in 0..1000 {
/// inserter.write(&MyRow { no: i, name: "foo" }).await.expect("Failed to insert row");
/// inserter.write(&MyRow { no: i, name: "foo" }).expect("Failed to insert row");
/// inserter.commit().await.expect("Failed to commit"); // Checks limits and ends a current INSERT if they are reached.
/// }
///
Expand Down

0 comments on commit 35a6216

Please sign in to comment.