From 61e527251ab689c99bc1174874389e66fdc04771 Mon Sep 17 00:00:00 2001 From: Travis Date: Thu, 30 Jan 2020 10:56:03 -0600 Subject: [PATCH] fix some comments --- executor.go | 2 +- index.go | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/executor.go b/executor.go index c078d4e29..473df14b5 100644 --- a/executor.go +++ b/executor.go @@ -3583,7 +3583,7 @@ func (e *executor) collectCallKeySets(ctx context.Context, indexName string, c * } } - // Collection foreign index keys. + // Collect foreign index keys. if fieldName != "" { idx := e.Holder.indexes[indexName] if field := idx.Field(fieldName); field != nil && field.ForeignIndex() != "" { diff --git a/index.go b/index.go index 56cbc0de2..bc6293b1b 100644 --- a/index.go +++ b/index.go @@ -62,8 +62,7 @@ type Index struct { logger logger.Logger snapshotQueue snapshotQueue - // Used for notifying holder when a field is added. - // Also passed to field for foreign-index lookup. + // Passed to field for foreign-index lookup. holder *Holder // Per-partition translation stores