Skip to content

Commit 5f4c973

Browse files
Minor optimization to cache latest schema (#1100)
* chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * Minor optimization to cache latest schema --------- Co-authored-by: Confluent Jenkins Bot <[email protected]>
1 parent c050c1f commit 5f4c973

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

schemaregistry/schemaregistry_client.go

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -392,9 +392,7 @@ func (c *client) GetID(subject string, schema SchemaInfo, normalize bool) (id in
392392
// GetLatestSchemaMetadata fetches latest version registered with the provided subject
393393
// Returns SchemaMetadata object
394394
func (c *client) GetLatestSchemaMetadata(subject string) (result SchemaMetadata, err error) {
395-
err = c.restService.handleRequest(newRequest("GET", versions, nil, url.PathEscape(subject), "latest"), &result)
396-
397-
return result, err
395+
return c.GetSchemaMetadata(subject, -1)
398396
}
399397

400398
// GetSchemaMetadata fetches the requested subject schema identified by version

0 commit comments

Comments
 (0)