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") } }