Skip to content

Commit

Permalink
remove unnecessary as usize
Browse files Browse the repository at this point in the history
  • Loading branch information
TommyCpp committed Nov 19, 2020
1 parent e6c438a commit 2c59fcf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions opentelemetry/src/sdk/trace/span_processor.rs
Original file line number Diff line number Diff line change
Expand Up @@ -278,7 +278,7 @@ impl BatchSpanProcessor {
// Span batch interval time reached or a force flush has been invoked, export current spans.
BatchMessage::Flush(Some(ch)) => {
let mut results = Vec::with_capacity(
spans.len() / config.max_export_batch_size + 1 as usize,
spans.len() / config.max_export_batch_size + 1,
);
while !spans.is_empty() {
let batch = spans.split_off(
Expand Down Expand Up @@ -316,7 +316,7 @@ impl BatchSpanProcessor {
// Stream has terminated or processor is shutdown, return to finish execution.
BatchMessage::Shutdown(ch) => {
let mut results = Vec::with_capacity(
spans.len() / config.max_export_batch_size + 1 as usize,
spans.len() / config.max_export_batch_size + 1,
);
while !spans.is_empty() {
let batch = spans.split_off(
Expand Down

0 comments on commit 2c59fcf

Please sign in to comment.