scheduler: improve some comments and validation messages

This commit is contained in:
SataQiu
2019-11-01 18:27:31 +08:00
parent c89bc5cec7
commit 89c3673a53
5 changed files with 11 additions and 11 deletions

View File

@@ -31,7 +31,7 @@ type CommunicatingPlugin struct{}
var _ framework.ReservePlugin = CommunicatingPlugin{}
var _ framework.PreBindPlugin = CommunicatingPlugin{}
// Name is the name of the plug used in Registry and configurations.
// Name is the name of the plugin used in Registry and configurations.
const Name = "multipoint-communicating-plugin"
// Name returns name of the plugin. It is used in logs, etc.
@@ -43,9 +43,9 @@ type stateData struct {
data string
}
func (f *stateData) Clone() framework.StateData {
func (s *stateData) Clone() framework.StateData {
copy := &stateData{
data: f.data,
data: s.data,
}
return copy
}