[skip e2e]Fix function typo (#14321)

Signed-off-by: godchen0212 <qingxiang.chen@zilliz.com>
pull/14825/head
godchen 2022-01-05 10:15:24 +08:00 committed by GitHub
parent bdd32e57e4
commit 77ae88fc37
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -98,7 +98,7 @@ func (c *ChannelManager) Startup(nodes []int64) error {
olds = append(olds, c.NodeID)
}
newOnLines := c.getNewOnlines(nodes, olds)
newOnLines := c.getNewOnLines(nodes, olds)
for _, n := range newOnLines {
if err := c.AddNode(n); err != nil {
return err
@ -174,7 +174,7 @@ func (c *ChannelManager) bgCheckChannelsWork(ctx context.Context) {
}
}
func (c *ChannelManager) getNewOnlines(curr []int64, old []int64) []int64 {
func (c *ChannelManager) getNewOnLines(curr []int64, old []int64) []int64 {
mold := make(map[int64]struct{})
ret := make([]int64, 0, len(curr))
for _, n := range old {