Skip to content

Commit 88404e3

Browse files
freeznetCopilot
andauthored
Update pkg/admin/impl.go
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
1 parent f84c5ee commit 88404e3

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

pkg/admin/impl.go

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -517,12 +517,9 @@ func (p *PulsarAdminClient) applyNamespacePolicies(completeNSName string, params
517517
}
518518
}
519519

520-
schemaStrategy := utils.AlwaysCompatible // default value
521520
if params.SchemaCompatibilityStrategy != nil {
522-
schemaStrategy = *params.SchemaCompatibilityStrategy
523-
}
524-
if schemaStrategy != utils.AlwaysCompatible {
525-
err = p.adminClient.Namespaces().SetSchemaAutoUpdateCompatibilityStrategy(*naName, schemaStrategy)
521+
schemaStrategy := *params.SchemaCompatibilityStrategy
522+
err := p.adminClient.Namespaces().SetSchemaAutoUpdateCompatibilityStrategy(*naName, schemaStrategy)
526523
if err != nil {
527524
return err
528525
}

0 commit comments

Comments
 (0)