From 125288f146d6950ce89466207efae41520e7c7c6 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Sun, 31 Jan 2016 23:49:08 +0100 Subject: update comments --- provider.go | 4 ++-- 1 file 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{ -- cgit v1.2.3