From 05b4135155f2a11b100709fb8bbd55aced76223d Mon Sep 17 00:00:00 2001 From: Alvaro Alda Date: Mon, 25 Mar 2019 15:25:44 +0100 Subject: [PATCH] Use pointers instead values to avoid locks copies --- client/client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/client/client.go b/client/client.go index b5657bde5..d3ffc5c48 100644 --- a/client/client.go +++ b/client/client.go @@ -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, @@ -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, @@ -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,