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

Remove heartbeat | Add Deregister #884

Merged
merged 17 commits into from
Sep 22, 2021
Merged

Remove heartbeat | Add Deregister #884

merged 17 commits into from
Sep 22, 2021

Conversation

mrpalide
Copy link
Contributor

Did you run make format && make check? Yes

Fixes Skywire Service #447

Changes:

  • remove updater loop
  • change Delete entry to Deregister
  • add Deregister on client side (skywire) stop app process and visor shutdown process.

How to test this PR:

Copy link
Member

@jdknives jdknives left a comment

Choose a reason for hiding this comment

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

It seems this PR is unfinished. There are a few questions regarding the changes you made but more importantly there seem to be a few things that have not been tackled at all yet. We have an updating interval in the serviceupdater struct defined despite us getting rid of the loop using that value.

I also wonder whether we still need the waitgroup and the cancelfunc given that we get rid of the update loop which we originally used it for.

pkg/app/appserver/proc.go Show resolved Hide resolved
pkg/app/updatedisc/discovery_updater.go Outdated Show resolved Hide resolved
pkg/app/updatedisc/discovery_updater.go Outdated Show resolved Hide resolved
…related codes and config | handle PR comments
pkg/app/managedisc/discovery_manager.go Outdated Show resolved Hide resolved
pkg/app/managedisc/discovery_manager.go Outdated Show resolved Hide resolved
pkg/app/managedisc/factory.go Outdated Show resolved Hide resolved
pkg/app/managedisc/factory.go Outdated Show resolved Hide resolved
pkg/app/managedisc/factory.go Outdated Show resolved Hide resolved
pkg/servicedisc/client.go Outdated Show resolved Hide resolved
pkg/servicedisc/client.go Outdated Show resolved Hide resolved
@ersonp
Copy link
Contributor

ersonp commented Sep 15, 2021

Besides some naming conventions for functions, everything looks good. Everything else is working as expected. I tested by registering vpn-server and public visor. vpn-server entry is deleted on stopping the app as well as with the shutdown logic. public visor entry is deleted with the shutdown logic.

@jdknives
Copy link
Member

Besides some naming conventions for functions, everything looks good. Everything else is working as expected. I tested by registering vpn-server and public visor. vpn-server entry is deleted on stopping the app as well as with the shutdown logic. public visor entry is deleted with the shutdown logic.

Fair point. We can call it entry on the service side as well. We do that in the dmsg-discovery and transport-discovery as well.

pkg/app/appdisc/discovery_manager.go Show resolved Hide resolved
pkg/app/appdisc/discovery_manager.go Outdated Show resolved Hide resolved
pkg/app/appdisc/factory.go Show resolved Hide resolved
pkg/visor/init.go Outdated Show resolved Hide resolved
pkg/servicedisc/types.go Outdated Show resolved Hide resolved
pkg/visor/visorconfig/v1.go Outdated Show resolved Hide resolved
@ersonp
Copy link
Contributor

ersonp commented Sep 17, 2021

Everything looks good besides the config, that I have mentioned above. I have tested visor, vpn and skysocks registration and deletion and it works as intended.

pkg/servicedisc/client.go Outdated Show resolved Hide resolved
pkg/visor/visorconfig/config.go Show resolved Hide resolved
Copy link
Contributor

@ersonp ersonp left a comment

Choose a reason for hiding this comment

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

Everything looks good.

@jdknives jdknives merged commit 797058a into skycoin:develop Sep 22, 2021
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.

3 participants