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

Minor optimization to cache latest schema #1100

Merged
merged 17 commits into from
Nov 8, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions schemaregistry/schemaregistry_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,9 +392,7 @@ func (c *client) GetID(subject string, schema SchemaInfo, normalize bool) (id in
// GetLatestSchemaMetadata fetches latest version registered with the provided subject
// Returns SchemaMetadata object
func (c *client) GetLatestSchemaMetadata(subject string) (result SchemaMetadata, err error) {
err = c.restService.handleRequest(newRequest("GET", versions, nil, url.PathEscape(subject), "latest"), &result)

return result, err
return c.GetSchemaMetadata(subject, -1)
}

// GetSchemaMetadata fetches the requested subject schema identified by version
Expand Down