mirror of
https://github.com/StackExchange/dnscontrol.git
synced 2024-09-20 06:46:19 +08:00
PORKBUN: Remove unused function (#3072)
This commit is contained in:
parent
69533fca23
commit
e86c666942
|
@ -4,12 +4,13 @@ import (
|
|||
"bytes"
|
||||
"encoding/json"
|
||||
"fmt"
|
||||
"github.com/StackExchange/dnscontrol/v4/pkg/printer"
|
||||
"io"
|
||||
"net/http"
|
||||
"sort"
|
||||
"strings"
|
||||
"time"
|
||||
|
||||
"github.com/StackExchange/dnscontrol/v4/pkg/printer"
|
||||
)
|
||||
|
||||
const (
|
||||
|
@ -100,12 +101,6 @@ retry:
|
|||
return bodyString, nil
|
||||
}
|
||||
|
||||
func (c *porkbunProvider) ping() error {
|
||||
params := requestParams{}
|
||||
_, err := c.post("/ping", params)
|
||||
return err
|
||||
}
|
||||
|
||||
func (c *porkbunProvider) createRecord(domain string, rec requestParams) error {
|
||||
if _, err := c.post("/dns/create/"+domain, rec); err != nil {
|
||||
return fmt.Errorf("failed create record (porkbun): %w", err)
|
||||
|
|
Loading…
Reference in a new issue