Skip to content

Commit

Permalink
refactor: refactor codebase to improve naming conventions and API usage
Browse files Browse the repository at this point in the history
- Update `masterName` and `slaveName` to use the `Port()` method for `masterPort` and `slavePort` respectively

Signed-off-by: appleboy <appleboy.tw@gmail.com>
  • Loading branch information
appleboy committed Jan 18, 2025
1 parent 633042c commit e81f83b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions redis_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ func TestRedisCluster(t *testing.T) {
Message: "foo",
}

masterName := fmt.Sprintf("%s:%s", hostIP, masterPort)
slaveName := fmt.Sprintf("%s:%s", hostIP, slavePort)
masterName := fmt.Sprintf("%s:%s", hostIP, masterPort.Port())
slaveName := fmt.Sprintf("%s:%s", hostIP, slavePort.Port())

hosts := []string{masterName, slaveName}

Expand Down

0 comments on commit e81f83b

Please sign in to comment.