Change .gitignore: added *.sum wildcard
This commit is contained in:
@ -87,6 +87,7 @@ func (c *client) DeleteRecord(rec *dns.Record) (error, *dns.Response) {
|
|||||||
"application/json",
|
"application/json",
|
||||||
bytes.NewBuffer(request_body),
|
bytes.NewBuffer(request_body),
|
||||||
)
|
)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err, nil
|
return err, nil
|
||||||
}
|
}
|
||||||
@ -109,6 +110,7 @@ func (c *client) UpdateRecord(rec *dns.Record) (error, *dns.Response) {
|
|||||||
Domain: c.Domain,
|
Domain: c.Domain,
|
||||||
Update: rec,
|
Update: rec,
|
||||||
})
|
})
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err, nil
|
return err, nil
|
||||||
}
|
}
|
||||||
@ -118,6 +120,7 @@ func (c *client) UpdateRecord(rec *dns.Record) (error, *dns.Response) {
|
|||||||
"application/json",
|
"application/json",
|
||||||
bytes.NewBuffer(request_body),
|
bytes.NewBuffer(request_body),
|
||||||
)
|
)
|
||||||
|
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err, nil
|
return err, nil
|
||||||
}
|
}
|
||||||
@ -138,12 +141,12 @@ func (c *client) GetRecords() (error, *[]dns.Record) {
|
|||||||
result_chan := make(chan []*dns.Record)
|
result_chan := make(chan []*dns.Record)
|
||||||
err_chan := make(chan error)
|
err_chan := make(chan error)
|
||||||
|
|
||||||
err, namesevers := c.getNSRecods()
|
err, nameservers := c.getNSRecods()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err, nil
|
return err, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, ns := range *namesevers {
|
for _, ns := range *nameservers {
|
||||||
wg.Add(1)
|
wg.Add(1)
|
||||||
|
|
||||||
go func(ns string) {
|
go func(ns string) {
|
||||||
|
Reference in New Issue
Block a user