From a17a4f58ba0bdef43f9794a2e7b5340b025451da Mon Sep 17 00:00:00 2001 From: Christian Ege Date: Tue, 9 Jul 2024 14:07:29 +0000 Subject: [PATCH] fix: creation of the channel map --- pkg/pcic/protocol.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pkg/pcic/protocol.go b/pkg/pcic/protocol.go index d28e48c..86b0825 100644 --- a/pkg/pcic/protocol.go +++ b/pkg/pcic/protocol.go @@ -73,7 +73,10 @@ type Response struct { func NewPCICClient(options ...PCICClientOption) (*PCICClient, error) { var err error - pcic := &PCICClient{} + pcic := &PCICClient{ + responseChans: make(map[string]chan Response), + } + // Apply options for _, opt := range options { if err = opt(pcic); err != nil {