Skip to content

Commit

Permalink
trigger GitHub action on any branch (#201)
Browse files Browse the repository at this point in the history
* trigger GitHub action on any branch

Signed-off-by: tabokie <xy.tao@outlook.com>

* fix

Signed-off-by: tabokie <xy.tao@outlook.com>

* tune parameter and prepare for publishing

Signed-off-by: tabokie <xy.tao@outlook.com>
  • Loading branch information
tabokie authored Mar 10, 2022
1 parent 7fae611 commit 3d94cb5
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
name: Rust

on:
push:
branches: [master]
pull_request:
branches: [master]
on: [push, pull_request]

env:
CARGO_TERM_COLOR: always
Expand Down
6 changes: 4 additions & 2 deletions ctl/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
[package]
name = "raft-engine-ctl"
version = "0.1.0"
authors = ["The TiKV Project Developers"]
edition = "2018"
authors = ["The TiKV Authors"]
rust-version = "1.56"
license = "Apache-2.0"

[dependencies]
clap = { version = "3.0.0-rc.0", features = ["derive", "cargo"] }
raft-engine = { path = "..", features = ["scripting", "internals"] }
raft-engine = { path = "..", version = "0.1.0", features = ["scripting", "internals"] }
2 changes: 1 addition & 1 deletion src/log_batch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ const CMD_CLEAN: u8 = 0x01;
const CMD_COMPACT: u8 = 0x02;

const DEFAULT_LOG_ITEM_BATCH_CAP: usize = 64;
const MAX_LOG_BATCH_BUFFER_CAP: usize = 4 * 1024 * 1024; // 4MB
const MAX_LOG_BATCH_BUFFER_CAP: usize = 8 * 1024 * 1024; // 8MB

/// `MessageExt` trait allows for probing log index from a specific type of
/// protobuf messages.
Expand Down

0 comments on commit 3d94cb5

Please sign in to comment.