Skip to content

Commit

Permalink
chore: fix lint error
Browse files Browse the repository at this point in the history
  • Loading branch information
moshloop committed Oct 17, 2023
1 parent d27239f commit d589b1c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion cmd/root.go
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,7 @@ func init() {

Root.PersistentFlags().StringVar(&db.ConnectionString, "db", "DB_URL", "Connection string for the postgres database")
Root.PersistentFlags().BoolVar(&db.RunMigrations, "db-migrations", false, "Run database migrations")
Root.PersistentFlags().BoolVar(&db.DbMetrics, "db-metrics", false, "Expose db metrics")
Root.PersistentFlags().BoolVar(&db.DBMetrics, "db-metrics", false, "Expose db metrics")
Root.PersistentFlags().BoolVar(&logFail, "log-fail", true, "Log every failing check")
Root.PersistentFlags().BoolVar(&logPass, "log-pass", false, "Log every passing check")
Root.PersistentFlags().StringArrayVar(&sharedLibrary, "shared-library", []string{}, "Add javascript files to be shared by all javascript templates")
Expand Down
4 changes: 2 additions & 2 deletions pkg/db/init.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ var Gorm *gorm.DB
var ConnectionString string
var DefaultExpiryDays int
var RunMigrations bool
var DbMetrics bool
var DBMetrics bool
var PostgresServer *embeddedpostgres.EmbeddedPostgres
var HTTPEndpoint = "http://localhost:8080/db"

Expand Down Expand Up @@ -102,7 +102,7 @@ func Init() error {
return err
}

if DbMetrics {
if DBMetrics {
go func() {
if err := Gorm.Use(prometheus.New(prometheus.Config{
DBName: Pool.Config().ConnConfig.Database,
Expand Down

0 comments on commit d589b1c

Please sign in to comment.