Skip to content
This repository was archived by the owner on Jul 21, 2025. It is now read-only.

Commit 42ee7d6

Browse files
committed
transport: rename node.Status() to node.IsUp()
1 parent 3e8e1ed commit 42ee7d6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

transport/cluster_integration_test.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@ func compareNodes(c *Cluster, addr string, expected *Node) error {
2222
switch {
2323
case !ok:
2424
return fmt.Errorf("couldn't find node: %s in cluster's nodes", addr)
25-
case got.Status() != expected.Status():
26-
return fmt.Errorf("got status: %t, expected: %t", got.Status(), expected.Status())
25+
case got.IsUp() != expected.IsUp():
26+
return fmt.Errorf("got status: %t, expected: %t", got.IsUp(), expected.IsUp())
2727
case got.addr != expected.addr:
2828
return fmt.Errorf("got IP address: %s, expected: %s", got.addr, expected.addr)
2929
case got.rack != expected.rack:

transport/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ type Node struct {
2525
status nodeStatus
2626
}
2727

28-
func (n *Node) Status() bool {
28+
func (n *Node) IsUp() bool {
2929
return n.status.Load()
3030
}
3131

0 commit comments

Comments
 (0)