Skip to content

Commit 35a6216

Browse files
authored
fixed build errors after upgrading clickhouse-rs
2 parents f6e0bd8 + 425f6a5 commit 35a6216

File tree

4 files changed

+8
-7
lines changed

4 files changed

+8
-7
lines changed

.github/workflows/rust-audit.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,8 @@ jobs:
1717
runs-on: ubuntu-latest
1818
steps:
1919
- uses: actions/checkout@v4
20-
- name: Audit Check # https://github.com/rustsec/audit-check/issues/2
21-
uses: rustsec/audit-check@master
20+
- run: cargo update
21+
- name: Audit Check
22+
uses: rustsec/audit-check@v2.0.0
2223
with:
23-
token: ${{ secrets.GITHUB_TOKEN }}
24+
token: ${{ secrets.GITHUB_TOKEN }}

CODEOWNERS

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,4 +14,4 @@
1414
# This should make it easy to add new rules without breaking existing ones.
1515

1616
# Global rule:
17-
* @marvin-hansen @jovezhong
17+
* @marvin-hansen @jovezhong @zliang-min

Cargo.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ path = "examples/remove/main.rs"
3434

3535

3636
[dependencies]
37-
clickhouse = { version = "0.13", features = ["watch"] }
37+
clickhouse = { version = "0.13", features = ["inserter", "watch"] }
3838
clickhouse-derive = { version = "0.2" }
3939
tokio = { version = "1", features = ["rt-multi-thread", "macros"] }
4040
serde = { version = "1.0.196", features = ["derive"] }

src/lib/insert.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -90,10 +90,10 @@ impl ProtonClient {
9090
/// .inserter("table_name")
9191
/// .await
9292
/// .expect("Failed to create inserter")
93-
/// .with_max_entries(100_000); // The maximum number of rows in one INSERT statement.
93+
/// .with_max_rows(100_000); // The maximum number of rows in one INSERT statement.
9494
///
9595
/// for i in 0..1000 {
96-
/// inserter.write(&MyRow { no: i, name: "foo" }).await.expect("Failed to insert row");
96+
/// inserter.write(&MyRow { no: i, name: "foo" }).expect("Failed to insert row");
9797
/// inserter.commit().await.expect("Failed to commit"); // Checks limits and ends a current INSERT if they are reached.
9898
/// }
9999
///

0 commit comments

Comments
 (0)