Skip to content

Commit

Permalink
Fixed the examples regarding the isKey removal
Browse files Browse the repository at this point in the history
  • Loading branch information
riferrei committed Aug 10, 2021
1 parent f62b456 commit c3dc77f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -89,10 +89,10 @@ func main() {
// 2) Fetch the latest version of the schema, or create a new one if it is the first
schemaRegistryClient := srclient.CreateSchemaRegistryClient("http://localhost:8081")
schema, err := schemaRegistryClient.GetLatestSchema(topic, false)
schema, err := schemaRegistryClient.GetLatestSchema(topic)
if schema == nil {
schemaBytes, _ := ioutil.ReadFile("complexType.avsc")
schema, err = schemaRegistryClient.CreateSchema(topic, string(schemaBytes), srclient.Avro, false)
schema, err = schemaRegistryClient.CreateSchema(topic, string(schemaBytes), srclient.Avro)
if err != nil {
panic(fmt.Sprintf("Error creating the schema %s", err))
}
Expand Down

0 comments on commit c3dc77f

Please sign in to comment.