return p.(*Partition[K, V])
}
- // At this point, we don't know the the number of partitions or their configuration, but
+ // At this point, we don't know the number of partitions or their configuration, but
// this will be re-adjusted later.
const numberOfPartitionsEstimate = 10
maxSize := opts.CalculateMaxSize(c.opts.MaxSize / numberOfPartitionsEstimate)
- urlize
Args:
- s
- Description: URLize returns the the strings s formatted as an URL.
+ Description: URLize returns the strings s formatted as an URL.
Examples: []
}
}
- // Drain the the cache eviction stack.
+ // Drain the cache eviction stack.
evicted := h.Deps.MemCache.DrainEvictedIdentities()
if len(evicted) < 200 {
changes = append(changes, evicted...)
// Attributes considered to be an option (code blocks)
options []Attribute
- // What we send to the the render hooks.
+ // What we send to the render hooks.
attributesMapInit sync.Once
attributesMap map[string]any
optionsMapInit sync.Once
return ns.deps.PathSpec.RelURL(ss, false), nil
}
-// URLize returns the the strings s formatted as an URL.
+// URLize returns the strings s formatted as an URL.
func (ns *Namespace) URLize(s any) (string, error) {
ss, err := cast.ToStringE(s)
if err != nil {