-
Notifications
You must be signed in to change notification settings - Fork 57
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
feat(bridge): get dr timestamp agnostic to protocol version upgrades #2534
base: master
Are you sure you want to change the base?
feat(bridge): get dr timestamp agnostic to protocol version upgrades #2534
Conversation
3d9a37e
to
7d4fb36
Compare
Err(_) => { | ||
return None; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Err(_) => { | |
return None; | |
} | |
Err(_) => None; |
Ok(x) => x, | ||
Err(()) => { | ||
log::error!("Failed to get current protocol info from witnet client, will retry later"); | ||
return Some(witnet_consensus_constants); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return Some(witnet_consensus_constants); | |
Some(witnet_consensus_constants) |
Ok(result) => result, | ||
Err(_) => { | ||
log::error!("Failed to connect to witnet client, will retry later"); | ||
return Err(()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return Err(()); | |
Err(()) |
.expect("failed to deserialize consensus constants"), | ||
Err(e) => { | ||
log::error!("error in getConsensusConstants call: {:?}", e); | ||
return Err(()); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
return Err(()); | |
Err(()) |
log::error!("error in getConsensusConstants call: {:?}", e); | ||
return Err(()); | ||
log::error!("Error when getting protocol info: {:?}", e); | ||
Err(()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Err(()) | |
Err(()) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
All these "returns" are on purpose, as they're intended to exit the function, not the match block.
No description provided.