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

Move GetVersion to client from federation_client #121

Merged
merged 2 commits into from
Mar 20, 2019

Conversation

anoadragon453
Copy link
Member

Make GetVersion a client function rather than a federation function.

client.go Outdated
) (res Version, err error) {
// Construct a request for version information
url := url.URL{
Scheme: "https",
Copy link
Member

Choose a reason for hiding this comment

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

matrix? Check the other methods in this file.

client.go Outdated

// GetVersion gets the version information of a homeserver.
// See https://matrix.org/docs/spec/server_server/r0.1.1.html#get-matrix-federation-v1-version
func (fc *Client) GetVersion(
Copy link
Member

Choose a reason for hiding this comment

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

this should be before the things it calls (ie, DoRequestAndParseResponse), and anyway conceptually it sits alongside GetServerKeys etc

Copy link
Member

@richvdh richvdh left a comment

Choose a reason for hiding this comment

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

lgtm

@anoadragon453 anoadragon453 merged commit 1afcac9 into master Mar 20, 2019
@anoadragon453 anoadragon453 deleted the anoa/version_to_client branch March 20, 2019 09:29
@anoadragon453 anoadragon453 restored the anoa/version_to_client branch March 20, 2019 11:18
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