Skip to content
This repository has been archived by the owner on Jul 13, 2023. It is now read-only.

fix: ensure consistent_read on fetch messages fns #1250

Merged
merged 1 commit into from
May 22, 2018
Merged

Conversation

pjenvey
Copy link
Member

@pjenvey pjenvey commented May 22, 2018

lost this in the python port

Issue #1249

lost this in the python port

Issue #1249
if messages.is_empty() {
return Ok(Default::default());
}

let timestamp = messages.iter().filter_map(|m| m.sortkey_timestamp).max();
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

max() gives us None for free here on empty iters

@codecov-io
Copy link

codecov-io commented May 22, 2018

Codecov Report

Merging #1250 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master    #1250   +/-   ##
=======================================
  Coverage   99.99%   99.99%           
=======================================
  Files          60       60           
  Lines       10547    10547           
=======================================
  Hits        10546    10546           
  Misses          1        1

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4c2df79...ecd09c5. Read the comment docs.

@bbangert bbangert merged commit 56b79b2 into master May 22, 2018
@bbangert bbangert deleted the feat/1249 branch May 22, 2018 23:58
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants