aboutsummaryrefslogtreecommitdiff
path: root/client.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-26 11:49:21 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-26 11:49:21 +0100
commit13c3ec7c51794a7a2b20459ee751493a4d48f5ee (patch)
treee90ba445d3f1c0269e3991afb37eeddce8f30666 /client.go
parentbc9b3520410ff64e4d15c946ab922f00e9698232 (diff)
bikeshading
Diffstat (limited to 'client.go')
-rw-r--r--client.go6
1 files changed, 2 insertions, 4 deletions
diff --git a/client.go b/client.go
index 244c90f..4a14f58 100644
--- a/client.go
+++ b/client.go
@@ -261,7 +261,7 @@ func (c *Client) Authorize(a *Account, altnames []string) error {
defer ticker.Stop()
go func() {
for range ticker.C {
- err := c.Status(ns.Location.String(), n, done)
+ err := c.QueryStatus(ns.Location.String(), n, done)
if err != nil {
errc <- err
return
@@ -279,8 +279,7 @@ func (c *Client) Authorize(a *Account, altnames []string) error {
return err
}
-func (c *Client) Status(url string, n int, done chan bool) error {
- log.Println(ansi.Color("STATUS", "red:yellow"))
+func (c *Client) QueryStatus(url string, n int, done chan bool) error {
r := &Authorization{}
resp, err := http.Get(url)
if err != nil {
@@ -293,7 +292,6 @@ func (c *Client) Status(url string, n int, done chan bool) error {
return err
}
if r.Challenges[n].Status == StatusValid {
- log.Println(ansi.Color("DONE", "red:white"))
done <- true
}
return nil