Skip to content

Commit 3ca9852

Browse files
authored
rust(feat): Refactor SiftStream internals for better nonblocking behavior (#350)
1 parent 4af94d0 commit 3ca9852

20 files changed

Lines changed: 3618 additions & 1751 deletions

rust/Cargo.lock

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

rust/crates/sift_connect/src/grpc/mod.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ impl SiftChannelBuilder {
5656
let channel = Endpoint::from_shared(uri)
5757
.map(|conn| {
5858
let mut chan = conn
59-
.keep_alive_while_idle(true)
59+
.keep_alive_while_idle(self.keep_alive_while_idle)
6060
.keep_alive_timeout(self.keep_alive_timeout)
6161
.http2_keep_alive_interval(self.keep_alive_interval)
6262
.user_agent(self.user_agent)

rust/crates/sift_stream/Cargo.toml

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,10 +22,11 @@ sift_rs = { workspace = true }
2222
tracing = { version = "0.1.41", optional = true }
2323
bytesize = { version = "2", optional = true }
2424
pbjson-types = { workspace = true }
25-
tokio = { version = "1.43.0", features = ["rt", "sync", "time", "macros"] }
25+
tokio = { version = "1.43.0", features = ["rt", "sync", "time", "macros", "fs"] }
2626
chrono = { workspace = true }
2727
futures-core = "0.3.31"
28-
tokio-stream = "0.1.17"
28+
tokio-stream = { version = "0.1.17", features = ["sync"] }
29+
async-channel = "2.2"
2930
prost = "^0.13"
3031
dirs = "6.0.0"
3132
crc32fast = "1.4.2"

0 commit comments

Comments
 (0)