Skip to content

Commit 6aa4335

Browse files
authored
Display instance for TcpSocketConfig (#1332)
Missed it in #1321
1 parent 90dccd2 commit 6aa4335

File tree

2 files changed

+14
-4
lines changed

2 files changed

+14
-4
lines changed

integration/tests/cli/system/test_snapshot_cmd.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ pub async fn should_be_successful() {
7272
.unwrap();
7373

7474
let zip_path = snapshot_file.path();
75-
let file = File::open(&zip_path).unwrap();
75+
let file = File::open(zip_path).unwrap();
7676
let mut archive = ZipArchive::new(file).unwrap();
7777

7878
let contents = {

server/src/configs/displays.rs

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ use crate::configs::{
1313
CacheConfig, CompressionConfig, EncryptionConfig, LoggingConfig, PartitionConfig,
1414
SegmentConfig, StreamConfig, SystemConfig, TopicConfig,
1515
},
16-
tcp::{TcpConfig, TcpTlsConfig},
16+
tcp::{TcpConfig, TcpSocketConfig, TcpTlsConfig},
1717
};
1818
use std::fmt::{Display, Formatter};
1919

@@ -290,8 +290,8 @@ impl Display for TcpConfig {
290290
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
291291
write!(
292292
f,
293-
"{{ enabled: {}, address: {}, tls: {} }}",
294-
self.enabled, self.address, self.tls
293+
"{{ enabled: {}, address: {}, ipv6: {}, tls: {}, socket: {} }}",
294+
self.enabled, self.address, self.ipv6, self.tls, self.socket,
295295
)
296296
}
297297
}
@@ -306,6 +306,16 @@ impl Display for TcpTlsConfig {
306306
}
307307
}
308308

309+
impl Display for TcpSocketConfig {
310+
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
311+
write!(
312+
f,
313+
"{{ override defaults: {}, recv buffer size: {}, send buffer size {}, keepalive: {}, nodelay: {}, linger: {} }}",
314+
self.override_defaults, self.recv_buffer_size, self.send_buffer_size, self.keepalive, self.nodelay, self.linger,
315+
)
316+
}
317+
}
318+
309319
impl Display for TelemetryConfig {
310320
fn fmt(&self, f: &mut Formatter<'_>) -> std::fmt::Result {
311321
write!(

0 commit comments

Comments
 (0)