Pass back the loader given upon instantiation of the domain BlocklistDB (#65)

This commit is contained in:
~Mich
2020-06-16 02:07:16 +03:00
committed by GitHub
parent dd70283998
commit 3d971dda4b

View File

@@ -55,7 +55,7 @@ func NewDomainDB(loader BlocklistLoader) (*DomainDB, error) {
n = subNode
}
}
return &DomainDB{root: root}, nil
return &DomainDB{root, loader}, nil
}
func (m *DomainDB) Reload() (BlocklistDB, error) {