Handle error returned by GetClusterInfos() (#30919)
A recent change to the enterprise cluster code introduced a change to the enterprise API interface. GetClusterInfos() can now return an error. This commit introduces code to handle that error.
Этот коммит содержится в:
коммит произвёл
GitHub
родитель
dfe6478fd7
Коммит
4b64eb0e39
@@ -21,7 +21,7 @@ type ClusterInterface interface {
|
||||
// and zero means "totally healthy".
|
||||
HealthScore() int
|
||||
GetMyClusterInfo() *model.ClusterInfo
|
||||
GetClusterInfos() []*model.ClusterInfo
|
||||
GetClusterInfos() ([]*model.ClusterInfo, error)
|
||||
SendClusterMessage(msg *model.ClusterMessage)
|
||||
SendClusterMessageToNode(nodeID string, msg *model.ClusterMessage) error
|
||||
NotifyMsg(buf []byte)
|
||||
|
||||
Ссылка в новой задаче
Block a user