Skip to content

Commit

Permalink
Merge pull request #123 from vijeyash1/uncommenting
Browse files Browse the repository at this point in the history
uncommenting all subscribtions  in client
  • Loading branch information
jebinjeb authored Jul 30, 2023
2 parents b2565ab + 5180db0 commit bcb4e1d
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion client/pkg/application/application.go
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ type Application struct {
}

func Start() *Application {
log.Println("Client Application started With New Code...")
log.Println("Client Application started...")
cfg := &config.Config{}
if err := envconfig.Process("", cfg); err != nil {
log.Fatalf("Could not parse env Config: %v", err)
Expand Down
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 bcb4e1d

Please sign in to comment.