Skip to content

Commit

Permalink
Fix issues from merging (#61)
Browse files Browse the repository at this point in the history
  • Loading branch information
robertjndw authored Feb 12, 2024
1 parent 534374a commit 02b2e8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: Build Docker Images

on:
pull_request_target:
pull_request:
push:
branches:
- main
Expand Down
10 changes: 5 additions & 5 deletions HadesAPI/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,10 @@ import (
var AsynqClient *asynq.Client

type HadesAPIConfig struct {
APIPort uint `env:"API_PORT,notEmpty" envDefault:"8080"`
RedisConfig utils.RedisConfig
AuthKey string `env:"AUTH_KEY"`
PrometheusAddress string `env:"PROMETHEUS_ADDRESS" envDefault:""`
APIPort uint `env:"API_PORT,notEmpty" envDefault:"8080"`
RedisConfig utils.RedisConfig
AuthKey string `env:"AUTH_KEY"`
PrometheusAddress string `env:"PROMETHEUS_ADDRESS" envDefault:""`
}

func main() {
Expand Down Expand Up @@ -61,7 +61,7 @@ func main() {

h := asynqmon.New(asynqmon.Options{
RootPath: "/monitoring", // RootPath specifies the root for asynqmon app
RedisConnOpt: asynq_client_opts,
RedisConnOpt: redis_opts,
PrometheusAddress: cfg.PrometheusAddress,
PayloadFormatter: MetadataObfuscator,
})
Expand Down

0 comments on commit 02b2e8a

Please sign in to comment.