diff options
author | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-10-28 14:56:38 +0100 |
---|---|---|
committer | Rasmus Dahlberg <rasmus.dahlberg@kau.se> | 2020-10-28 14:56:38 +0100 |
commit | ffe6e49220648a0b847e47e1072cf0b8d1b1f803 (patch) | |
tree | 52949a55f3d8b1ad1f214aa6e408c194ecf1eaba /handler.go | |
parent | caca215c9516e8dc236a8510a6a5467c267d2331 (diff) |
go fmt
Diffstat (limited to 'handler.go')
-rw-r--r-- | handler.go | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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) |