From 6f45879f1b5e6fa18fdcc8347fbb412524dd8b55 Mon Sep 17 00:00:00 2001 From: caltechustc Date: Sun, 24 May 2026 11:54:56 +0800 Subject: [PATCH] chore: fix some function names in comment (#5596) Signed-off-by: caltechustc --- core/discov/internal/registry.go | 2 +- core/stores/monc/cachedmodel_test.go | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/core/discov/internal/registry.go b/core/discov/internal/registry.go index e4ad0e963..33963e273 100644 --- a/core/discov/internal/registry.go +++ b/core/discov/internal/registry.go @@ -518,7 +518,7 @@ func makeKeyPrefix(key string) string { return fmt.Sprintf("%s%c", key, Delimiter) } -// NewClient returns a watchValue that make sure values are not nil. +// newWatchValue returns a watchValue that make sure values are not nil. func newWatchValue() *watchValue { return &watchValue{ values: make(map[string]string), diff --git a/core/stores/monc/cachedmodel_test.go b/core/stores/monc/cachedmodel_test.go index 4f8fe8fbc..940db8626 100644 --- a/core/stores/monc/cachedmodel_test.go +++ b/core/stores/monc/cachedmodel_test.go @@ -542,7 +542,7 @@ func mustNewTestModel(collection mon.Collection, c cache.CacheConf, opts ...cach } } -// NewNodeModel returns a test Model with a cache node. +// mustNewTestNodeModel returns a test Model with a cache node. func mustNewTestNodeModel(collection mon.Collection, rds *redis.Redis, opts ...cache.Option) *Model { c := cache.NewNode(rds, singleFlight, stats, mongo.ErrNoDocuments, opts...) return &Model{