@@ -13,7 +13,7 @@ use crate::configs::{
13
13
CacheConfig , CompressionConfig , EncryptionConfig , LoggingConfig , PartitionConfig ,
14
14
SegmentConfig , StreamConfig , SystemConfig , TopicConfig ,
15
15
} ,
16
- tcp:: { TcpConfig , TcpTlsConfig } ,
16
+ tcp:: { TcpConfig , TcpSocketConfig , TcpTlsConfig } ,
17
17
} ;
18
18
use std:: fmt:: { Display , Formatter } ;
19
19
@@ -290,8 +290,8 @@ impl Display for TcpConfig {
290
290
fn fmt ( & self , f : & mut Formatter < ' _ > ) -> std:: fmt:: Result {
291
291
write ! (
292
292
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 ,
295
295
)
296
296
}
297
297
}
@@ -306,6 +306,16 @@ impl Display for TcpTlsConfig {
306
306
}
307
307
}
308
308
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
+
309
319
impl Display for TelemetryConfig {
310
320
fn fmt ( & self , f : & mut Formatter < ' _ > ) -> std:: fmt:: Result {
311
321
write ! (
0 commit comments