From 476329cfb3b7c2d54581e3d1f8b62822a088c966 Mon Sep 17 00:00:00 2001 From: Brad Fitzpatrick Date: Thu, 1 Dec 2011 17:13:42 -0800 Subject: [PATCH] blobref: Equals is named Equal everywhere else Change-Id: Ic45c05a8467e8d597ef4c8038a6067e075a1fdcc --- lib/go/camli/blobref/blobref.go | 2 +- lib/go/camli/blobserver/blobhub_test.go | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/go/camli/blobref/blobref.go b/lib/go/camli/blobref/blobref.go index 31113afe9..6131010b3 100644 --- a/lib/go/camli/blobref/blobref.go +++ b/lib/go/camli/blobref/blobref.go @@ -105,7 +105,7 @@ func (b *BlobRef) DomID() string { return "camli-" + b.String() } -func (o *BlobRef) Equals(other *BlobRef) bool { +func (o *BlobRef) Equal(other *BlobRef) bool { return o.hashName == other.hashName && o.digest == other.digest } diff --git a/lib/go/camli/blobserver/blobhub_test.go b/lib/go/camli/blobserver/blobhub_test.go index 89866b661..caab79b11 100644 --- a/lib/go/camli/blobserver/blobhub_test.go +++ b/lib/go/camli/blobserver/blobhub_test.go @@ -84,7 +84,7 @@ func TestHubFiring(t *testing.T) { case <-tmr1.C: t.Fatal("timer expired on receiving from ch") case got := <-ch: - if !blob.Equals(got) { + if !blob.Equal(got) { t.Fatalf("got wrong blob") } } @@ -93,7 +93,7 @@ func TestHubFiring(t *testing.T) { case <-tmr1.C: t.Fatal("timer expired on receiving from bch") case got := <-bch: - if !blob.Equals(got) { + if !blob.Equal(got) { t.Fatalf("got wrong blob") } }