diff --git a/src/sources/socket/tcp.rs b/src/sources/socket/tcp.rs index bcd02e073633d..6f212e6e0a84f 100644 --- a/src/sources/socket/tcp.rs +++ b/src/sources/socket/tcp.rs @@ -40,7 +40,6 @@ pub struct TcpConfig { deprecated = "This option has been deprecated. Configure `max_length` on the framing config instead." )] #[configurable(metadata(docs::type_unit = "bytes"))] - #[serde(default = "default_max_length")] max_length: Option, /// The timeout before a connection is forcefully closed during shutdown. diff --git a/src/sources/socket/unix.rs b/src/sources/socket/unix.rs index 0cd85d01621fe..60ccce8300274 100644 --- a/src/sources/socket/unix.rs +++ b/src/sources/socket/unix.rs @@ -50,7 +50,6 @@ pub struct UnixConfig { #[configurable( deprecated = "This option has been deprecated. Configure `max_length` on the framing config instead." )] - #[serde(default = "default_max_length")] #[configurable(metadata(docs::type_unit = "bytes"))] pub max_length: Option, diff --git a/website/cue/reference/components/sources/base/socket.cue b/website/cue/reference/components/sources/base/socket.cue index 2d3b0fe11afd1..0d0b2762dcb32 100644 --- a/website/cue/reference/components/sources/base/socket.cue +++ b/website/cue/reference/components/sources/base/socket.cue @@ -189,10 +189,7 @@ base: components: sources: socket: configuration: { Messages larger than this are truncated. """ required: false - type: uint: { - default: 102400 - unit: "bytes" - } + type: uint: unit: "bytes" } mode: { description: "The type of socket to use."