Skip to content

Commit

Permalink
uncommenting all subscribtions in client
Browse files Browse the repository at this point in the history
  • Loading branch information
vijeyash1 committed Jul 29, 2023
1 parent 484e164 commit c8e26a6
Showing 1 changed file with 10 additions and 10 deletions.
20 changes: 10 additions & 10 deletions client/pkg/clients/clients.go
Original file line number Diff line number Diff line change
Expand Up @@ -46,16 +46,16 @@ func NewNATSContext(conf *config.Config, dbClient clickhouse.DBInterface) (*NATS
}
ctx.SubscribeGitBridgeNats(dbClient)

// _, err = stream.StreamInfo("CONTAINERMETRICS")
// if err != nil {
// return nil, fmt.Errorf("container metrics stream not found %w", err)
// }
// ctx.SubscribeContainerNats(dbClient)
// _, err = stream.StreamInfo("METRICS")
// if err != nil {
// return nil, fmt.Errorf("kubeviz metrics stream not found %w", err)
// }
// ctx.SubscribeAllKubvizNats(dbClient)
_, err = stream.StreamInfo("CONTAINERMETRICS")
if err != nil {
return nil, fmt.Errorf("container metrics stream not found %w", err)
}
ctx.SubscribeContainerNats(dbClient)
_, err = stream.StreamInfo("METRICS")
if err != nil {
return nil, fmt.Errorf("kubeviz metrics stream not found %w", err)
}
ctx.SubscribeAllKubvizNats(dbClient)

return ctx, nil
}
Expand Down

0 comments on commit c8e26a6

Please sign in to comment.