Skip to content

Commit

Permalink
graph: Avoid using let _
Browse files Browse the repository at this point in the history
  • Loading branch information
leoyvens committed Jan 17, 2020
1 parent 8f2acc1 commit fee5945
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions graph/src/log/elastic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -262,7 +262,7 @@ impl ElasticDrain {
let client = Client::new();
let logger_for_err = flush_logger.clone();

let _ = client
client
.post(batch_url)
.header("Content-Type", "application/json")
.basic_auth(
Expand All @@ -272,7 +272,8 @@ impl ElasticDrain {
.body(batch_body)
.send()
.and_then(|response| async { response.error_for_status() })
.map_err(move |e| {
.map_ok(|_| ())
.unwrap_or_else(move |e| {
// Log if there was a problem sending the logs
error!(
logger_for_err,
Expand Down

0 comments on commit fee5945

Please sign in to comment.