Skip to content

Commit

Permalink
fix: creation of the channel map
Browse files Browse the repository at this point in the history
  • Loading branch information
graugans committed Jul 11, 2024
1 parent 4f1f04e commit ad0749c
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion pkg/pcic/protocol.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit ad0749c

Please sign in to comment.