Skip to content

Commit

Permalink
channel name
Browse files Browse the repository at this point in the history
  • Loading branch information
RazenaSaleem committed Feb 19, 2024
1 parent b40a3cc commit 4e4d6d0
Show file tree
Hide file tree
Showing 4 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions charts/quality-trace/values.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ telemetry:
type: collector
collector:
# endpoint to send traces to the collector
endpoint: quality-trace-otel-collector:4317
endpoint: otel-collector:4317

# Configures the server
server:
Expand All @@ -103,7 +103,7 @@ image:
repository: ghcr.io/intelops/quality-trace
pullPolicy: IfNotPresent
# Overrides the image tag whose default is the chart appVersion.
tag: pr-54
tag: latest

env:
qualitytraceDev: ""
Expand Down
1 change: 0 additions & 1 deletion server/app/app.go
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,6 @@ func (app *App) Start(opts ...appOption) error {
}
fmt.Println(app.Version())
fmt.Println("Starting")
fmt.Println("inside app.go")
ctx := context.Background()

poolcfg, err := pgxpool.ParseConfig(app.cfg.PostgresConnString())
Expand Down
1 change: 1 addition & 0 deletions server/executor/queue_driver_postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,6 +84,7 @@ func (qd *PostgresQueueDriver) Start() {
func (qd *PostgresQueueDriver) worker(conn *pgxpool.Conn) {
qd.log("listening for notifications")
_, err := conn.Exec(context.Background(), "listen "+pgChannelName)
qd.log("channel name = %v", pgChannelName )
if err != nil {
qd.log("error listening for notifications: %s", err.Error())
return
Expand Down
2 changes: 0 additions & 2 deletions server/testdb/postgres.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@ func Postgres(options ...PostgresOption) (*postgresDB, error) {
return nil, err
}
}
fmt.Println("checking migration")
err := ps.ensureLatestMigration()
if err != nil {
return nil, fmt.Errorf("could not execute migrations: %w", err)
Expand All @@ -34,7 +33,6 @@ func Postgres(options ...PostgresOption) (*postgresDB, error) {

func (p *postgresDB) ensureLatestMigration() error {
driver, err := postgres.WithInstance(p.db, &postgres.Config{})
fmt.Printf(" db name = %v, config= %v", p.db,postgres.Config{} )
if err != nil {
return fmt.Errorf("could not get driver from postgres connection: %w", err)
}
Expand Down

0 comments on commit 4e4d6d0

Please sign in to comment.