Skip to content

Commit

Permalink
Fix for use of context in tx api upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin2112 committed Jan 30, 2017
1 parent 610c38a commit feee108
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions server/log_rpc_server.go
Original file line number Diff line number Diff line change
Expand Up @@ -222,7 +222,7 @@ func (t *TrillianLogRPCServer) GetConsistencyProof(ctx context.Context, req *tri
return nil, fmt.Errorf("%s: second tree size (%d) must be > first tree size (%d)", util.LogIDPrefix(ctx), req.SecondTreeSize, req.FirstTreeSize)
}

tx, err := t.prepareReadOnlyStorageTx(req.LogId)
tx, err := t.prepareReadOnlyStorageTx(ctx, req.LogId)
if err != nil {
return nil, err
}
Expand All @@ -233,7 +233,6 @@ func (t *TrillianLogRPCServer) GetConsistencyProof(ctx context.Context, req *tri
return nil, err
}

// TODO(Martin2112): Should pass actual tree size as param3 but we don't have it yet
nodeFetches, err := merkle.CalcConsistencyProofNodeAddresses(req.FirstTreeSize, req.SecondTreeSize, secondTreeSize, proofMaxBitLen)
if err != nil {
return nil, err
Expand Down

0 comments on commit feee108

Please sign in to comment.