Skip to content

Commit

Permalink
chore: wording
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrinux committed Dec 6, 2024
1 parent cf485c9 commit 9d99927
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions internal/controller/dragonfly_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ func (dfi *DragonflyInstance) checkAndConfigureReplication(ctx context.Context)
return err
}

// Configure to the right master if not correct
// configuring to the right master
if !ok {
dfi.log.Info("configuring pod as replica to the right master", "pod", pod.Name)
if err := dfi.configureReplica(ctx, &pod); err != nil {
Expand Down Expand Up @@ -365,7 +365,7 @@ func (dfi *DragonflyInstance) replicaOf(ctx context.Context, pod *corev1.Pod, ma
}

if err := dfi.client.Update(ctx, pod); err != nil {
return fmt.Errorf("could not update replica annotation: %w", err)
return fmt.Errorf("could not update replica metadatas: %w", err)
}

return nil
Expand Down

0 comments on commit 9d99927

Please sign in to comment.