Skip to content

Commit

Permalink
Amended the code based on the PR review: #729
Browse files Browse the repository at this point in the history
  • Loading branch information
kazhura-aws committed Nov 15, 2023
1 parent bd2ec76 commit dbb00e4
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions lambda-extension/src/extension.rs
Original file line number Diff line number Diff line change
Expand Up @@ -226,10 +226,7 @@ where
if let Some(mut log_processor) = self.logs_processor {
trace!("Log processor found");

let log_buffering_validation_result = validate_buffering_configuration(self.log_buffering);
if log_buffering_validation_result.is_err() {
return log_buffering_validation_result;
}
validate_buffering_configuration(self.log_buffering)?;

// Spawn task to run processor
let addr = SocketAddr::from(([0, 0, 0, 0], self.log_port_number));
Expand Down Expand Up @@ -268,10 +265,7 @@ where
if let Some(mut telemetry_processor) = self.telemetry_processor {
trace!("Telemetry processor found");

let telemetry_buffering_validation_result = validate_buffering_configuration(self.telemetry_buffering);
if telemetry_buffering_validation_result.is_err() {
return telemetry_buffering_validation_result;
}
validate_buffering_configuration(self.telemetry_buffering)?;

// Spawn task to run processor
let addr = SocketAddr::from(([0, 0, 0, 0], self.telemetry_port_number));
Expand Down

0 comments on commit dbb00e4

Please sign in to comment.