diff options
| author | ewy <ewy0@protonmail.com> | 2026-04-22 19:47:29 +0200 |
|---|---|---|
| committer | ewy <ewy0@protonmail.com> | 2026-04-22 19:47:29 +0200 |
| commit | c6a362a039b1662dfc0badeb8badc4458e446787 (patch) | |
| tree | 40ed4abc183e65d8341d47454b81036200173406 /indexers | |
| parent | 37900eae9d3c00a9c93a6ef2816b879f6c6f072b (diff) | |
work out the "default" behaviour a little better
Diffstat (limited to 'indexers')
| -rw-r--r-- | indexers/pikdex/index.go | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/indexers/pikdex/index.go b/indexers/pikdex/index.go index 9a54502..aec6b00 100644 --- a/indexers/pikdex/index.go +++ b/indexers/pikdex/index.go @@ -73,7 +73,9 @@ func (u *pikdex) Index(absPath string, f fs.FS, runners []model.Runner) ([]model return nil, err } var targets []model.Target + u.Lock() mod := u.mods[absPath] + u.Unlock() if mod == nil { u.mods[absPath] = &SourceData{ Path: absPath, |
