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

Warn the operator if the version of the storage server is out of date #257

Merged
merged 1 commit into from
Aug 9, 2019

Conversation

msgmaxim
Copy link
Contributor

@msgmaxim msgmaxim commented Aug 8, 2019

  • periodically query storage.version.loki.network dns record for the latest version
  • print a warning if our version is behind

Copy link
Contributor

@BeaudanBrown BeaudanBrown left a comment

Choose a reason for hiding this comment

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

Seems straightforward enough

}

static std::string query_latest_version() {

Copy link
Contributor

Choose a reason for hiding this comment

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

Do we want to throw a log here as well like above?

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!

httpserver/dns_text_records.cpp Outdated Show resolved Hide resolved
httpserver/dns_text_records.cpp Outdated Show resolved Hide resolved
httpserver/dns_text_records.cpp Outdated Show resolved Hide resolved
Copy link
Contributor

@sachaaaaa sachaaaaa left a comment

Choose a reason for hiding this comment

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

LGTM

@msgmaxim msgmaxim merged commit a08da24 into oxen-io:dev Aug 9, 2019
@msgmaxim msgmaxim deleted the warn-version branch September 9, 2019 02:38
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