aboutsummaryrefslogtreecommitdiff
path: root/handler.go
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-10-28 14:56:38 +0100
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-10-28 14:56:38 +0100
commitffe6e49220648a0b847e47e1072cf0b8d1b1f803 (patch)
tree52949a55f3d8b1ad1f214aa6e408c194ecf1eaba /handler.go
parentcaca215c9516e8dc236a8510a6a5467c267d2331 (diff)
go fmt
Diffstat (limited to 'handler.go')
-rw-r--r--handler.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/handler.go b/handler.go
index 119f65c..8f36e50 100644
--- a/handler.go
+++ b/handler.go
@@ -180,8 +180,8 @@ func getConsistencyProof(ctx context.Context, i *Instance, w http.ResponseWriter
} // request can be decoded and is valid
trillianRequest := trillian.GetConsistencyProofRequest{
- LogId: i.LogParameters.TreeId,
- FirstTreeSize: int64(request.First),
+ LogId: i.LogParameters.TreeId,
+ FirstTreeSize: int64(request.First),
SecondTreeSize: int64(request.Second),
}
trillianResponse, err := i.Client.GetConsistencyProof(ctx, &trillianRequest)
@@ -220,7 +220,7 @@ func getSth(ctx context.Context, i *Instance, w http.ResponseWriter, _ *http.Req
return http.StatusInternalServerError, fmt.Errorf("failed unmarshaling tree head: %v", err)
}
- th := NewTreeHeadV1(uint64(lr.TimestampNanos / 1000 / 1000), uint64(lr.TreeSize), lr.RootHash)
+ th := NewTreeHeadV1(uint64(lr.TimestampNanos/1000/1000), uint64(lr.TreeSize), lr.RootHash)
sth, err := GenV1STH(i.LogParameters, th)
if err != nil {
return http.StatusInternalServerError, fmt.Errorf("failed creating signed tree head: %v", err)