aboutsummaryrefslogtreecommitdiff
path: root/registry
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--registry/registry.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/registry/registry.go b/registry/registry.go
index f1ec426..605c4f8 100644
--- a/registry/registry.go
+++ b/registry/registry.go
@@ -296,7 +296,10 @@ func (r *Registry) deliverAcceptToInbox(url, actorUrl, actorKeyUrl *url.URL, fol
digestBytes := digest.Sum(nil)
r.mu.Lock()
- signature, _ := rsa.SignPKCS1v15(rand.Reader, privKey, crypto.SHA256, digestBytes[:])
+ signature, err := rsa.SignPKCS1v15(rand.Reader, privKey, crypto.SHA256, digestBytes[:])
+ if err != nil {
+ r.log.Error(err)
+ }
r.mu.Unlock()
b64sig := base64.StdEncoding.EncodeToString(signature)