Skip to content

Commit e81f83b

Browse files
committed
refactor: refactor codebase to improve naming conventions and API usage
- Update `masterName` and `slaveName` to use the `Port()` method for `masterPort` and `slavePort` respectively Signed-off-by: appleboy <[email protected]>
1 parent 633042c commit e81f83b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

redis_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -183,8 +183,8 @@ func TestRedisCluster(t *testing.T) {
183183
Message: "foo",
184184
}
185185

186-
masterName := fmt.Sprintf("%s:%s", hostIP, masterPort)
187-
slaveName := fmt.Sprintf("%s:%s", hostIP, slavePort)
186+
masterName := fmt.Sprintf("%s:%s", hostIP, masterPort.Port())
187+
slaveName := fmt.Sprintf("%s:%s", hostIP, slavePort.Port())
188188

189189
hosts := []string{masterName, slaveName}
190190

0 commit comments

Comments
 (0)