chore: fix some function names in comment (#5596)

Signed-off-by: caltechustc <caltechustc@outlook.com>
This commit is contained in:
caltechustc
2026-05-24 11:54:56 +08:00
committed by GitHub
parent 7b5e7b1c26
commit 6f45879f1b
2 changed files with 2 additions and 2 deletions

View File

@@ -518,7 +518,7 @@ func makeKeyPrefix(key string) string {
return fmt.Sprintf("%s%c", key, Delimiter) 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 { func newWatchValue() *watchValue {
return &watchValue{ return &watchValue{
values: make(map[string]string), values: make(map[string]string),

View File

@@ -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 { func mustNewTestNodeModel(collection mon.Collection, rds *redis.Redis, opts ...cache.Option) *Model {
c := cache.NewNode(rds, singleFlight, stats, mongo.ErrNoDocuments, opts...) c := cache.NewNode(rds, singleFlight, stats, mongo.ErrNoDocuments, opts...)
return &Model{ return &Model{