aboutsummaryrefslogtreecommitdiff
path: root/provider.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-01-31 23:49:08 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-01-31 23:49:08 +0100
commit125288f146d6950ce89466207efae41520e7c7c6 (patch)
tree1e0e56b26837fec9b98bf39ed128375d869f8ed3 /provider.go
parentd3725bafc11be83fdb1eeb3dce065a711227345b (diff)
update comments
Diffstat (limited to 'provider.go')
-rw-r--r--provider.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/provider.go b/provider.go
index 69d125a..0e1d70f 100644
--- a/provider.go
+++ b/provider.go
@@ -75,7 +75,7 @@ func (p Problem) Error() string {
return p.Detail
}
-// RoundTrip implements RoundTipper
+// RoundTrip extracts nonces from HTTP reponse
func (p Provider) RoundTrip(req *http.Request) (*http.Response, error) {
resp, err := p.Transport.RoundTrip(req)
if err != nil {
@@ -100,7 +100,7 @@ func (p Provider) Nonce() (string, error) {
}
}
-// DialProvider fetches directory and initializes nonce
+// DialProvider fetches directory and initializes first nonce
func DialProvider(directory string) (*Provider, error) {
p := &Provider{nonces: make(chan string, 100)}
p.Client = http.Client{