aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--README.md1
-rw-r--r--provider.go4
2 files changed, 5 insertions, 0 deletions
diff --git a/README.md b/README.md
index a04c520..b418b52 100644
--- a/README.md
+++ b/README.md
@@ -94,5 +94,6 @@ slogin -R \*:80:localhost:8080 -N root@docker.moccu.com
# redesign
+- provider -> nonce
- account -> signer
- desire -> map[domain]signer
diff --git a/provider.go b/provider.go
index 755e8c6..ef7d85a 100644
--- a/provider.go
+++ b/provider.go
@@ -41,6 +41,10 @@ func (p Provider) nonce(resp *http.Response) {
p.nonces <- rn
}
log.Println("# nonces", len(p.nonces))
+ for len(p.nonces) > 10 {
+ <-p.nonces
+ }
+ log.Println("# nonces", len(p.nonces))
}
// NewProvider fetches directory and initializes nonce