Skip to content

Commit

Permalink
chore: im not sure about that 6
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrinux committed Dec 5, 2024
1 parent aebed5f commit 716ca9a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion internal/controller/dragonfly_instance.go
Original file line number Diff line number Diff line change
Expand Up @@ -348,7 +348,7 @@ func (dfi *DragonflyInstance) replicaOf(ctx context.Context, pod *corev1.Pod, ma
masterIp = strings.Trim(masterIp, "[]")

dfi.log.Info("Trying to invoke SLAVE OF command", "pod", pod.Name, "master", masterIp, "addr", redisClient.Options().Addr)
resp, err := redisClient.SlaveOf(ctx, masterIp, strconv.Itoa(resources.DragonflyPort)).Result()
resp, err := redisClient.SlaveOf(ctx, masterIp, strconv.Itoa(resources.DragonflyAdminPort)).Result()
if err != nil {
return fmt.Errorf("error running SLAVE OF command: %s", err)
}
Expand Down

0 comments on commit 716ca9a

Please sign in to comment.