-
Notifications
You must be signed in to change notification settings - Fork 0
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
Setting up ZKBridge repo and adding spiral KV abstractions. #1
Conversation
b3b9e05
to
a792135
Compare
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.
nit: Can you use li-formatting.
} | ||
} | ||
|
||
public static class SpiralStoreClientBuilder { |
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.
You can take a look at [Immutables] to reduce some of this boiler plate.
|
||
private final SpiralApiGrpc.SpiralApiBlockingStub _blockingStub; | ||
|
||
private SpiralStoreClient(String spiralEndpoint, boolean useSsl, String caBundle, String identityCert, String identityKey, String overrideAuthority) { |
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.
Can you wrap ssl related arguments in SslConfig
?
.build(); | ||
GetResponse response = _blockingStub.get(request); | ||
return response.getValue().getMessage().toByteArray(); | ||
} catch (Exception e) { |
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.
Can you catch specific exception?
* This KV-store client is used to interact with the KV-store server. | ||
*/ | ||
|
||
public interface KVStoreClient<K, V, C> { |
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.
nit: KvStore
?
Description
This PR sets up basic scaffolding for zkbridge repo. It also adds KV store abstractions for integrating spiral to zkbridge. For an overview following things are added in this PR :
Tests
The following is the result of the "mvn test" command on the appropriate module:
(If CI test fails due to known issue, please specify the issue and test PR locally. Then copy & paste the result of "mvn test" to here.)
Changes that Break Backward Compatibility (Optional)
My PR contains changes that break backward compatibility or previous assumptions for certain methods or API. They include:
(Consider including all behavior changes for public methods or API. Also include these changes in merge description so that other developers are aware of these changes. This allows them to make relevant code changes in feature branches accounting for the new method/API behavior.)
Documentation (Optional)
In case of new functionality, my PR adds documentation in the following wiki page:
(Link the GitHub wiki you added)