You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// TODO: in v0.30.0 , remove the `max_length` setting from
118
-
// the UnixConfig, and all of the below mess and replace
119
-
// it with the configured framing /
120
-
// decoding.default_stream_framing().
121
-
let framing = match(config.framing().clone(), config.max_length()){
122
-
(Some(framing),Some(_)) => {
123
-
warn!(message = "DEPRECATION: The `max_length` setting is deprecated and will be removed in an upcoming release. Since a `framing` setting was provided, the `max_length` setting has no effect.");
124
-
framing
125
-
}
126
-
(Some(framing),None) => framing,
127
-
(None,Some(max_length)) => {
128
-
warn!(message = "DEPRECATION: The `max_length` setting is deprecated and will be removed in an upcoming release. Please configure the `max_length` from the `framing` setting instead.");
let tcp = tcp::RawTcpSource::new(config.clone(), decoder, log_namespace);
138
130
let tls_config = config.tls().as_ref().map(|tls| tls.tls_config.clone());
@@ -190,27 +182,18 @@ impl SourceConfig for SocketConfig {
190
182
}
191
183
#[cfg(unix)]
192
184
Mode::UnixStream(config) => {
193
-
let decoding = config.decoding.clone();
194
-
195
-
// TODO: in v0.30.0 , remove the `max_length` setting from
196
-
// the UnixConfig, and all of the below mess and replace
197
-
// it with the configured framing /
198
-
// decoding.default_stream_framing().
199
-
let framing = match(config.framing.clone(), config.max_length){
200
-
(Some(framing),Some(_)) => {
201
-
warn!(message = "DEPRECATION: The `max_length` setting is deprecated and will be removed in an upcoming release. Since a `framing` setting was provided, the `max_length` setting has no effect.");
202
-
framing
203
-
}
204
-
(Some(framing),None) => framing,
205
-
(None,Some(max_length)) => {
206
-
warn!(message = "DEPRECATION: The `max_length` setting is deprecated and will be removed in an upcoming release. Please configure the `max_length` from the `framing` setting instead.");
0 commit comments