aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--handler.go6
1 files changed, 1 insertions, 5 deletions
diff --git a/handler.go b/handler.go
index a8165ec..80d7726 100644
--- a/handler.go
+++ b/handler.go
@@ -65,11 +65,7 @@ func addEntry(ctx context.Context, i *instance, w http.ResponseWriter, r *http.R
trillianResponse, err := i.client.QueueLeaf(ctx, &trillianRequest)
if err != nil {
return http.StatusInternalServerError, fmt.Errorf("backend QueueLeaf request failed: %v", err)
- }
- if trillianResponse == nil {
- return http.StatusInternalServerError, fmt.Errorf("missing QueueLeaf response")
- }
- // TODO: check that we got gRPC OK as specified in Trillian's API doc
+ } // note: more detail could be provided here, see addChainInternal in ctfe
glog.Infof("Queued leaf: %v", trillianResponse.QueuedLeaf.Leaf.LeafValue)
// TODO: respond with an SDI