Skip to content

Commit 81ac1c4

Browse files
committed
fix(core): use passed context when joining cluster
1 parent 25f6019 commit 81ac1c4

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

conn/node.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ func (n *Node) joinCluster(ctx context.Context, rc *pb.RaftContext) (*api.Payloa
771771
}
772772
n.Connect(rc.Id, rc.Addr)
773773

774-
err := n.addToCluster(context.Background(), rc)
774+
err := n.addToCluster(ctx, rc)
775775
glog.Infof("[%#x] Done joining cluster with err: %v", rc.Id, err)
776776
return &api.Payload{}, err
777777
}

0 commit comments

Comments
 (0)