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

feat: Add remote resolver #791

Merged
merged 1 commit into from
Sep 23, 2021
Merged

feat: Add remote resolver #791

merged 1 commit into from
Sep 23, 2021

Conversation

sandrask
Copy link
Contributor

Add component that will be able to issue server to server call for document resolution.

Closes #790

Signed-off-by: Sandra Vrtikapa sandra.vrtikapa@securekey.com

@codecov
Copy link

codecov bot commented Sep 23, 2021

Codecov Report

Merging #791 (a6b878a) into main (df7d989) will increase coverage by 0.06%.
The diff coverage is 90.69%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #791      +/-   ##
==========================================
+ Coverage   89.93%   90.00%   +0.06%     
==========================================
  Files         140      141       +1     
  Lines       11888    11931      +43     
==========================================
+ Hits        10691    10738      +47     
+ Misses        738      733       -5     
- Partials      459      460       +1     
Impacted Files Coverage Δ
pkg/document/remoteresolver/remoteresolver.go 90.69% <90.69%> (ø)
...pub/service/inbox/httpsubscriber/httpsubscriber.go 100.00% <0.00%> (+9.87%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update df7d989...a6b878a. Read the comment docs.

Add component that will be able to issue server to server call for document resolution.

Closes trustbloc#790

Signed-off-by: Sandra Vrtikapa <sandra.vrtikapa@securekey.com>

err = json.Unmarshal(responseBytes, &respObj)
if err != nil {
return nil, fmt.Errorf("failed to unmarshal resolution result[%s] for remote request[%s]",
Copy link
Contributor

Choose a reason for hiding this comment

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

In this case maybe the error can be added to errMsgs and continue to the next URL.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

sure, I will change this in my next PR

@sandrask sandrask merged commit 449de40 into trustbloc:main Sep 23, 2021
@sandrask sandrask linked an issue Oct 12, 2021 that may be closed by this pull request
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Add remote resolver Resolve document from anchor origin
3 participants