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

Use retrier from the dmsg package netutil #1111

Merged
merged 7 commits into from
Mar 4, 2022
Merged

Use retrier from the dmsg package netutil #1111

merged 7 commits into from
Mar 4, 2022

Conversation

ersonp
Copy link
Contributor

@ersonp ersonp commented Feb 24, 2022

Did you run make format && make check?
yes

Fixes #1040

Changes:

  • Changed retrier to dmsgnetutil
  • Removed internal netutil retrier
  • Removed warn log from app discovery

How to test this PR:

  1. Checkout #dmsg-162
  2. Uncomment //replace github.com/skycoin/dmsg => ../dmsg in go mod an run make dep; make build
  3. Create config ./skywire-cli config gen -dir
  4. Run visor ./skywire-visor -c skywire-config.json
  5. See retrier warn logs
  6. Close visor with Ctrl+C and see if there are no retrier warn logs while closing

Needs:
#dmsg-162

This commit changes the retrier used from internal netutil to dmsgnetutil in order to use a retrier from a single place.
This commit deletes the retrier code from the internal netutil package and the places that it was used now use retrier from dmsgnetutil.

Going forward the retrier from dmsg repos netutil package will be used.
This commit changes the max backoff of retrier in client in package utclient and autoconnect and client in package servicedisc to zero.

It is set to zero to give it no max backoff just like it's previous iteration.
This commit removes the warning log from the retrier func of app discovery as a warning log is used in the retrier and this one is no longer needed.
@ersonp ersonp marked this pull request as ready for review February 24, 2022 11:23
@mrpalide mrpalide merged commit 68757a0 into skycoin:develop Mar 4, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants