Skip to content
This repository has been archived by the owner on Feb 6, 2021. It is now read-only.

Commit

Permalink
reduce changes
Browse files Browse the repository at this point in the history
  • Loading branch information
nacardin committed Nov 30, 2020
1 parent cce575a commit c9332f5
Show file tree
Hide file tree
Showing 5 changed files with 30 additions and 36 deletions.
54 changes: 24 additions & 30 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
members = [
"crates/socket",
"crates/service"
]
]
6 changes: 3 additions & 3 deletions crates/socket/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "fluvio-socket"
version = "0.4.3"
version = "0.4.2"
edition = "2018"
authors = ["Fluvio Contributors <[email protected]>"]
description = "Provide TCP socket wrapper for fluvio protocol"
Expand Down Expand Up @@ -35,10 +35,10 @@ pin-project = "1.0.1"
thiserror = "1.0.20"

# Fluvio dependencies
fluvio-future = { version = "0.1.12", features = ["net", "zero_copy"] }
fluvio-future = { version = "0.1.11", features = ["net", "zero_copy"] }
fluvio-protocol = { version = "0.2.0", features = ["derive", "api", "codec", "store"] }


[dev-dependencies]
fluvio-future = { version = "0.1.12", features = ["fixture", "fs", "native2_tls"] }
fluvio-future = { version = "0.1.5", features = ["fixture", "fs", "native2_tls"] }
flv-util = { version = "0.5.0", features = ["fixture"] }
2 changes: 1 addition & 1 deletion crates/socket/src/sink.rs
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ where
self.get_mut_tcp_sink().send(bytes).await?;
}
StoreValue::FileSlice(f_slice) => {
if f_slice.is_empty() {
if f_slice.len() == 0 {
debug!("empty slice, skipping");
} else {
debug!(
Expand Down
2 changes: 1 addition & 1 deletion crates/socket/src/socket.rs
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,7 @@ impl<S> From<(InnerFlvSink<S>, InnerFlvStream<S>)> for InnerFlvSocket<S> {

impl FlvSocket {
pub async fn connect(addr: &str) -> Result<Self, FlvSocketError> {
Self::connect_with_connector(addr, &DefaultTcpDomainConnector).await
Self::connect_with_connector(addr, &DefaultTcpDomainConnector::new()).await
}
}

Expand Down

0 comments on commit c9332f5

Please sign in to comment.