Skip to content

Commit

Permalink
fix npe
Browse files Browse the repository at this point in the history
  • Loading branch information
iskakaushik committed Sep 28, 2023
1 parent a3104ef commit c57fb1f
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions flow/connectors/eventhub/hubmanager.go
Original file line number Diff line number Diff line change
Expand Up @@ -32,15 +32,18 @@ func NewEventHubManager(
) *EventHubManager {
hubs := cmap.New[*azeventhubs.ProducerClient]()
peerConfig := cmap.New[*protos.EventHubConfig]()
peerNames := cmap.New[string]()

for name, config := range groupConfig.Eventhubs {
peerConfig.Set(name, config)
}

return &EventHubManager{
ctx: ctx,
creds: creds,
hubs: hubs,
ctx: ctx,
creds: creds,
hubs: hubs,
peerConfig: peerConfig,
peerNames: peerNames,
}
}

Expand Down

0 comments on commit c57fb1f

Please sign in to comment.