Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix build on master 🔧💚 #157

Merged
merged 1 commit into from
Feb 12, 2020
Merged

Fix build on master 🔧💚 #157

merged 1 commit into from
Feb 12, 2020

Conversation

liamsi
Copy link
Member

@liamsi liamsi commented Feb 12, 2020

closes #156

  • Referenced an issue explaining the need for the change
  • Updated all relevant documentation in docs
  • Updated all code comments where relevant
  • Wrote tests
  • Updated CHANGES.md

@Shivani912
Copy link
Contributor

👍

@@ -82,7 +84,7 @@ impl Requester<SignedHeader, Header> for MockRequester {
return Ok(sh.into());
}
println!("couldn't get sh for: {}", &h);
Err(Error::RequestFailed)
fail!(Kind::RequestFailed, "couldn't get sh for: {}", &h);
Copy link
Member Author

@liamsi liamsi Feb 12, 2020

Choose a reason for hiding this comment

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

This is just a shortcut for

return Kind::RequestFailed.context(format!("couldn't get sh for: {}", &h)).into();

Copy link
Contributor

Choose a reason for hiding this comment

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

Okay, I was close but didn't know about this shortcut. Thanks!

use serde::{de::Error as _, Deserialize, Deserializer, Serialize};
use serde_json;
use std::collections::HashMap;
use std::convert::TryInto;
use std::{fs, path::PathBuf};
use tendermint::block::{Header, Height};
use tendermint::lite::{Error, Requester, TrustThresholdFraction, TrustedState};
Copy link
Member Author

Choose a reason for hiding this comment

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

Errors moved into their own module as per #149

@codecov-io
Copy link

Codecov Report

❗ No coverage uploaded for pull request base (master@6c22da0). Click here to learn what that means.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff            @@
##             master     #157   +/-   ##
=========================================
  Coverage          ?   35.36%           
=========================================
  Files             ?       91           
  Lines             ?     3184           
  Branches          ?      504           
=========================================
  Hits              ?     1126           
  Misses            ?     1773           
  Partials          ?      285

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 6c22da0...33c23ac. Read the comment docs.

@liamsi liamsi merged commit 3df67f4 into master Feb 12, 2020
@liamsi liamsi deleted the ismail/fix_master_after_146 branch February 12, 2020 17:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Master fails to build
3 participants