Skip to content

Commit

Permalink
update dbmodeUpdateStrategy
Browse files Browse the repository at this point in the history
  • Loading branch information
randmonkey committed Dec 5, 2024
1 parent afc3beb commit 9df705d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 2 deletions.
2 changes: 1 addition & 1 deletion internal/dataplane/sendconfig/dbmode.go
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ func NewUpdateStrategyDBModeKonnect(
concurrency int,
diagnostic *diagnostics.ClientDiagnostic,
logger logr.Logger,
) UpdateStrategyDBMode {
) *UpdateStrategyDBMode {
s := NewUpdateStrategyDBMode(client, dumpConfig, version, concurrency, diagnostic, logger)
s.isKonnect = true
return s
Expand Down
2 changes: 1 addition & 1 deletion internal/dataplane/sendconfig/sendconfig.go
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ func PerformUpdate(
updateStrategy := updateStrategyResolver.ResolveUpdateStrategy(client, diagnostic)
logger = logger.WithValues("update_strategy", updateStrategy.Type())
timeStart := time.Now()
err = updateStrategy.Update(ctx, ContentWithHash{
size, err := updateStrategy.Update(ctx, ContentWithHash{
Content: targetContent,
CustomEntities: customEntities,
Hash: newSHA,
Expand Down
1 change: 1 addition & 0 deletions test/kongintegration/dbmode_update_strategy_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,7 @@ func TestUpdateStrategyDBMode(t *testing.T) {
dump.Config{},
semver.MustParse("3.6.0"),
10,
nil,
logger,
)

Expand Down

0 comments on commit 9df705d

Please sign in to comment.