Skip to content
This repository has been archived by the owner on Mar 27, 2024. It is now read-only.

feat: use different domain when anchor origin is down #280

Merged
merged 1 commit into from
Aug 9, 2022

Conversation

fqutishat
Copy link
Contributor

Signed-off-by: Firas Qutishat firas.qutishat@securekey.com

@codecov
Copy link

codecov bot commented Aug 8, 2022

Codecov Report

Merging #280 (2780d44) into main (7c7e258) will increase coverage by 0.07%.
The diff coverage is 0.00%.

❗ Current head 2780d44 differs from pull request most recent head a345b9b. Consider uploading reports for the commit a345b9b to get more accurate results

@@            Coverage Diff             @@
##             main     #280      +/-   ##
==========================================
+ Coverage   85.40%   85.47%   +0.07%     
==========================================
  Files          26       26              
  Lines        4076     4083       +7     
==========================================
+ Hits         3481     3490       +9     
  Misses        352      352              
+ Partials      243      241       -2     
Impacted Files Coverage Δ
component/vdr/orb/vdr.go 71.21% <0.00%> (-0.82%) ⬇️
component/storage/mongodb/store.go 89.35% <0.00%> (+1.14%) ⬆️

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@fqutishat fqutishat force-pushed the update branch 3 times, most recently from ccb35f4 to 9e31a21 Compare August 9, 2022 08:00
endpoint, err = v.discoveryService.GetEndpoint(docResolution.DocumentMetadata.Method.AnchorOrigin)
if err != nil {
return nil, fmt.Errorf("failed to get endpoints: %w", err)
domain, errChoose := v.selectDomainSvc.Choose(v.domains)
Copy link
Contributor

Choose a reason for hiding this comment

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

Is it possible that the same domain will be chosen?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Yes. I will add retry

Copy link
Contributor Author

Choose a reason for hiding this comment

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

done

Signed-off-by: Firas Qutishat <firas.qutishat@securekey.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants