mirror of
https://github.com/caddyserver/caddy.git
synced 2025-05-22 17:49:59 +08:00
Use markdown.Config as pointer everywhere
* As value mutex was copied and therefore synchronization worked wrong * It's pretty big structure with reference types, so copying create unnecessary pressure on GC Signed-off-by: Alexander Morozov <lk4d4@docker.com>
This commit is contained in:
@ -83,7 +83,7 @@ func (l *linkGen) generateLinks(md Markdown, cfg *Config) bool {
|
||||
return false
|
||||
}
|
||||
|
||||
hash, err := computeDirHash(md, *cfg)
|
||||
hash, err := computeDirHash(md, cfg)
|
||||
|
||||
// same hash, return.
|
||||
if err == nil && hash == cfg.linksHash {
|
||||
|
Reference in New Issue
Block a user