[skip e2e]Fix variable typo (#14325)

Signed-off-by: godchen0212 <qingxiang.chen@zilliz.com>
pull/14692/head
godchen 2021-12-31 15:49:19 +08:00 committed by GitHub
parent f0e6e190df
commit d7da870cc4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -149,7 +149,7 @@ func (c *ChannelManager) bgCheckChannelsWork(ctx context.Context) {
c.mu.Lock()
channels := c.store.GetNodesChannels()
reallocs, err := c.bgChecker(channels, time.Now())
reallocates, err := c.bgChecker(channels, time.Now())
if err != nil {
log.Warn("channel manager bg check failed", zap.Error(err))
@ -157,7 +157,7 @@ func (c *ChannelManager) bgCheckChannelsWork(ctx context.Context) {
continue
}
updates := c.reassignPolicy(c.store, reallocs)
updates := c.reassignPolicy(c.store, reallocates)
log.Debug("channel manager bg check reassign", zap.Array("updates", updates))
for _, update := range updates {
if update.Type == Add {