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

#382 auth networking interactor #421

Merged
merged 5 commits into from
Aug 10, 2022
Merged

Conversation

llbartekll
Copy link
Contributor

@llbartekll llbartekll commented Aug 9, 2022

Add requestNetworkAck function that completes with an acknowledgement from the relay network.
handles incoming requests and responses to networking interactor and publishes decrypted rpc requests to subscribers

@arein arein added the accepted label Aug 9, 2022
@llbartekll llbartekll marked this pull request as draft August 9, 2022 09:52
@llbartekll llbartekll marked this pull request as ready for review August 9, 2022 10:26
Copy link
Contributor

@flypaper0 flypaper0 left a comment

Choose a reason for hiding this comment

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

lgtm, little task descriptions in PR's can be helpful

@@ -11,6 +11,7 @@ protocol NetworkInteracting {
func subscribe(topic: String) async throws
func unsubscribe(topic: String)
func request(_ request: RPCRequest, topic: String, tag: Int, envelopeType: Envelope.EnvelopeType) async throws
func requestNetworkAck(_ request: RPCRequest, topic: String, tag: Int) async throws

Choose a reason for hiding this comment

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

We need to get rid of this kind of function that waits for the network acknowledgement (at least if we want to generalize the interactor). We need to find a better way around to wait for the acknowledgement on calls that need it.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I am not sure I understand, what you mean by generalize? isn't this approach generic and interface could be shared by all SDKs?

@llbartekll llbartekll self-assigned this Aug 10, 2022
@llbartekll llbartekll merged commit b676369 into main Aug 10, 2022
@llbartekll llbartekll deleted the #382-auth-networking-interactor branch August 10, 2022 06:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

4 participants