From 6d672348e7897f2fa301813ecd3c0d5e6528ec0c Mon Sep 17 00:00:00 2001 From: Gani Georgiev Date: Sat, 7 Oct 2023 13:17:32 +0300 Subject: [PATCH] rearanged the DefaultClient struct fields to reduce its size from ~72 to ~32 bytes --- tools/subscriptions/client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tools/subscriptions/client.go b/tools/subscriptions/client.go index 85b40827..b3f98058 100644 --- a/tools/subscriptions/client.go +++ b/tools/subscriptions/client.go @@ -60,12 +60,12 @@ var _ Client = (*DefaultClient)(nil) // DefaultClient defines a generic subscription client. type DefaultClient struct { - mux sync.RWMutex - isDiscarded bool - id string store map[string]any channel chan Message subscriptions map[string]struct{} + id string + mux sync.RWMutex + isDiscarded bool } // NewDefaultClient creates and returns a new DefaultClient instance.