From f0d709f65d69d678d683f8ba324c8a913ac25dee Mon Sep 17 00:00:00 2001 From: Robert Yokota Date: Wed, 10 Apr 2024 15:25:18 -0700 Subject: [PATCH] MINOR Fix counter in mock SR client (#1170) * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * chore: update repo semaphore config * MINOR fix counter in mock SR client --------- Co-authored-by: Confluent Jenkins Bot --- schemaregistry/mock_schemaregistry_client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/schemaregistry/mock_schemaregistry_client.go b/schemaregistry/mock_schemaregistry_client.go index 7f86fb1f9..de382a52f 100644 --- a/schemaregistry/mock_schemaregistry_client.go +++ b/schemaregistry/mock_schemaregistry_client.go @@ -31,11 +31,11 @@ type counter struct { count int } -func (c counter) currentValue() int { +func (c *counter) currentValue() int { return c.count } -func (c counter) increment() int { +func (c *counter) increment() int { c.count++ return c.count }