Skip to content

Commit

Permalink
Use pointers instead values to avoid locks copies
Browse files Browse the repository at this point in the history
  • Loading branch information
aalda committed Mar 25, 2019
1 parent 3d908d9 commit 05b4135
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions client/client.go
Original file line number Diff line number Diff line change
Expand Up @@ -508,7 +508,7 @@ func (c *HTTPClient) Incremental(start, end uint64) (*protocol.IncrementalRespon

// Verify will compute the Proof given in Membership and the snapshot from the
// add and returns a proof of existence.
func (c HTTPClient) Verify(
func (c *HTTPClient) Verify(
result *protocol.MembershipResult,
snap *protocol.Snapshot,
hasherF func() hashing.Hasher,
Expand All @@ -527,7 +527,7 @@ func (c HTTPClient) Verify(

// Verify will compute the Proof given in Membership and the snapshot from the
// add and returns a proof of existence.
func (c HTTPClient) DigestVerify(
func (c *HTTPClient) DigestVerify(
result *protocol.MembershipResult,
snap *protocol.Snapshot,
hasherF func() hashing.Hasher,
Expand All @@ -544,7 +544,7 @@ func (c HTTPClient) DigestVerify(

}

func (c HTTPClient) VerifyIncremental(
func (c *HTTPClient) VerifyIncremental(
result *protocol.IncrementalResponse,
startSnapshot, endSnapshot *protocol.Snapshot,
hasher hashing.Hasher,
Expand Down

0 comments on commit 05b4135

Please sign in to comment.