Skip to content

Commit

Permalink
rename DBBacked()
Browse files Browse the repository at this point in the history
  • Loading branch information
randmonkey committed Nov 8, 2023
1 parent 687e05e commit c8309aa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/dataplane/config/dbmode.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,6 @@ func (m DBMode) IsDBLessMode() bool {

// DBBacked returns true if the gateway is DB backed.
// reverse of IsDBLessMode for readability.
func (m DBMode) DBBacked() bool {
func (m DBMode) IsDBBacked() bool {
return !m.IsDBLessMode()
}
2 changes: 1 addition & 1 deletion internal/dataplane/kong_client.go
Original file line number Diff line number Diff line change
Expand Up @@ -478,7 +478,7 @@ func (c *KongClient) sendOutToGatewayClients(
// since only ONE gateway client is chosen to send requests and store SHA of latest configurations,
// we should propagate the SHA from the chosen client to other clients
// as well as they will pick the configuration from the shared database.
if c.dbmode.DBBacked() &&
if c.dbmode.IsDBBacked() &&
len(gatewayClients) > 1 {
for _, client := range gatewayClients {
client.SetLastConfigSHA([]byte(shas[0]))
Expand Down

0 comments on commit c8309aa

Please sign in to comment.