Unused code removed
This commit is contained in:
parent
de3bcdd7fc
commit
61d6d47637
1 changed files with 0 additions and 14 deletions
|
@ -8,20 +8,6 @@ import (
|
||||||
"github.com/sirupsen/logrus"
|
"github.com/sirupsen/logrus"
|
||||||
)
|
)
|
||||||
|
|
||||||
func getDomain(fqdn string) *Domain {
|
|
||||||
domain := new(Domain)
|
|
||||||
err := DB.QueryRow(
|
|
||||||
"SELECT id, friendly_name, fqdn, owner_id, last_edit FROM lighthouse.domains WHERE `fqdn` = ?;", fqdn).Scan(
|
|
||||||
&domain.ID,
|
|
||||||
&domain.FriendlyName,
|
|
||||||
&domain.Fqdn,
|
|
||||||
&domain.OwnerId,
|
|
||||||
&domain.LastEdit,
|
|
||||||
)
|
|
||||||
print(err)
|
|
||||||
return domain
|
|
||||||
}
|
|
||||||
|
|
||||||
func GetRecord(entry Record) Record {
|
func GetRecord(entry Record) Record {
|
||||||
//Check for strict record in Redis cache
|
//Check for strict record in Redis cache
|
||||||
redisKey := entry.Fqdn + "--" + fmt.Sprint(entry.Qtype)
|
redisKey := entry.Fqdn + "--" + fmt.Sprint(entry.Qtype)
|
||||||
|
|
Loading…
Reference in a new issue