aboutsummaryrefslogtreecommitdiff
path: root/handler.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-10-23 13:24:55 +0200
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-10-23 13:24:55 +0200
commit0aba64da241caef9f66e3b28e3504ec93eea8593 (patch)
tree7900a719b7598de66f58217013f4ef08b81a51ee /handler.go
parent5b3ba26e5265aeda5710691cbb91a880beb1d228 (diff)
added comments
Diffstat (limited to 'handler.go')
-rw-r--r--handler.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/handler.go b/handler.go
index 863bbbb..a8165ec 100644
--- a/handler.go
+++ b/handler.go
@@ -82,7 +82,7 @@ func getEntries(ctx context.Context, i *instance, w http.ResponseWriter, r *http
request, err := NewGetEntriesRequest(r)
if err != nil {
return http.StatusBadRequest, err
- }
+ } // request can be decoded and is valid
trillianRequest := trillian.GetLeavesByRangeRequest{
LogId: i.logID,
@@ -135,7 +135,7 @@ func getProofByHash(ctx context.Context, i *instance, w http.ResponseWriter, r *
request, err := NewGetProofByHashRequest(r)
if err != nil {
return http.StatusBadRequest, err
- }
+ } // request can be decoded and is valid
trillianRequest := trillian.GetInclusionProofByHashRequest{
LogId: i.logID,