-
Notifications
You must be signed in to change notification settings - Fork 115
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
oasis-node: Add support for IsReady and WaitReady RPC methods #2957
Conversation
7396a7d
to
0b49973
Compare
0b49973
to
3cf5b4c
Compare
fc7b0ea
to
254adaf
Compare
6532e73
to
42da091
Compare
0cea87a
to
5526cb7
Compare
Codecov Report
@@ Coverage Diff @@
## master #2957 +/- ##
==========================================
- Coverage 68.74% 68.47% -0.28%
==========================================
Files 360 360
Lines 35285 35386 +101
==========================================
- Hits 24258 24229 -29
- Misses 7922 8040 +118
- Partials 3105 3117 +12
Continue to review full report at Codecov.
|
99e21da
to
a7cff7b
Compare
a7cff7b
to
7b3bc49
Compare
995a6f2
to
012243f
Compare
7e2a2d2
to
b46a1e4
Compare
ccba4d3
to
ce3d617
Compare
The new method allows the caller to register a callback that will be invoked on a successful registration that includes the node descriptor updated by the passed hook.
ce3d617
to
259a147
Compare
259a147
to
d0551ab
Compare
// Calls can fail around epoch transitions, as the access policy | ||
// is being updated, so we must retry. | ||
return err | ||
case status.Code(err) == codes.Unavailable: | ||
// XXX: HACK: Find a better way to determine the root cause. | ||
if strings.Contains(err.Error(), "tls: bad public key") { |
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.
Unfortunately, due to gRPC's use of wrapping RPC errors (see here) it is not possible to get the original error.
Fixes #2130