From 57d984cbeaf582dc5caa970ab925fee7ebd73eff Mon Sep 17 00:00:00 2001 From: Ashish Tiwari Date: Wed, 13 Jul 2022 15:58:09 +0530 Subject: [PATCH] lint Signed-off-by: Ashish Tiwari --- adapter/adapter.go | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/adapter/adapter.go b/adapter/adapter.go index 3ef5a4f..ae785c0 100644 --- a/adapter/adapter.go +++ b/adapter/adapter.go @@ -49,8 +49,8 @@ type Adapter struct { mx sync.Mutex } -func (a *Adapter) SetChannel(hchan *chan interface{}) { - a.mx.Lock() - defer a.mx.Unlock() - a.Channel = hchan +func (h *Adapter) SetChannel(hchan *chan interface{}) { + h.mx.Lock() + defer h.mx.Unlock() + h.Channel = hchan }