1
0
mirror of https://github.com/osmarks/mycorrhiza.git synced 2025-11-12 05:23:01 +00:00

Rename Hypha to MediaHypha

This commit is contained in:
Timur Ismagilov
2022-02-04 16:00:38 +05:00
committed by Timur Ismagilov
parent 154069091e
commit a30d581bfd
17 changed files with 54 additions and 54 deletions

View File

@@ -21,9 +21,9 @@ func Index(path string) {
for h := range ch {
// It's safe to ignore the mutex because there is a single worker right now.
if oh := ByName(h.CanonicalName()); oh.DoesExist() {
oh.(*Hypha).mergeIn(h.(*Hypha))
oh.(*MediaHypha).mergeIn(h.(*MediaHypha))
} else {
insert(h.(*Hypha))
insert(h.(*MediaHypha))
}
}
log.Println("Indexed", Count(), "hyphae")
@@ -49,7 +49,7 @@ func indexHelper(path string, nestLevel uint, ch chan Hypher) {
var (
hyphaPartPath = filepath.Join(path, node.Name())
hyphaName, isText, skip = mimetype.DataFromFilename(hyphaPartPath)
hypha = &Hypha{name: hyphaName, Exists: true}
hypha = &MediaHypha{name: hyphaName, Exists: true}
)
if !skip {
if isText {