Skip to content

Commit

Permalink
Back out "Sign shards with the signature of the whole schema"
Browse files Browse the repository at this point in the history
Reviewed By: ginfung

Differential Revision: D51599306

fbshipit-source-id: 82bb469e0b2e78e9bf21b440975d66010fb9df37
  • Loading branch information
Mathew Luo authored and facebook-github-bot committed Nov 28, 2023
1 parent b683e8c commit e16e911
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion compiler/crates/signedsource/src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ lazy_static! {
static ref RE: Regex = Regex::new("\x40generated (?:SignedSource<<([a-f0-9]{32})>>)").unwrap();
}

pub fn hash(data: &str) -> String {
fn hash(data: &str) -> String {
let mut md5 = Md5::new();
md5.update(data);
hex::encode(md5.finalize())
Expand Down

0 comments on commit e16e911

Please sign in to comment.