Skip to content

Commit 5b2086e

Browse files
committed
try things
1 parent 71b4b45 commit 5b2086e

File tree

2 files changed

+3
-3
lines changed
  • metadata-store-postgres/src/Cardano/Metadata/Store/Postgres
  • metadata-sync/src/Cardano/Metadata/Sync

2 files changed

+3
-3
lines changed

metadata-store-postgres/src/Cardano/Metadata/Store/Postgres/Config.hs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ parseOpts = Opts
2323
<*> strOption (long "db-user" <> metavar "DB_USER" <> help "User to connect to metadata database with")
2424
<*> strOption (long "db-pass" <> metavar "DB_PASS" <> help "Password to connect to metadata database with")
2525
<*> strOption (long "db-host" <> metavar "DB_HOST" <> showDefault <> value "/run/postgresql" <> help "Host for the metadata database connection")
26-
<*> strOption (long "db-port" <> metavar "DB_PORT" <> showDefault <> value 5432 <> help "Port for the metadata database connection")
26+
<*> option auto (long "db-port" <> metavar "DB_PORT" <> showDefault <> value 5432 <> help "Port for the metadata database connection")
2727
<*> strOption (long "db-table" <> metavar "DB_TABLE" <> showDefault <> value "metadata" <> help "Table in the database to store metadata")
2828
<*> option auto (long "db-conns" <> metavar "INT" <> showDefault <> value 1 <> help "Number of connections to open to the database")
2929
<*> option auto (short 'p' <> long "port" <> metavar "PORT" <> showDefault <> value 8080 <> help "Port to run the metadata web server on")

metadata-sync/src/Cardano/Metadata/Sync/Config.hs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ data Opts = Opts
3535
{ optDbName :: Text
3636
, optDbUser :: Text
3737
, optDbPass :: Text
38-
, optDbHost :: String
38+
, optDbHost :: Text
3939
, optDbPort :: Warp.Port
4040
, optDbMetadataTableName :: Text
4141
, optDbConnections :: Int
@@ -50,7 +50,7 @@ parseOpts = Opts
5050
<*> strOption (long "db-user" <> metavar "DB_USER" <> help "User to connect to metadata database with")
5151
<*> strOption (long "db-pass" <> metavar "DB_PASS" <> help "Password to connect to metadata database with")
5252
<*> strOption (long "db-host" <> metavar "DB_HOST" <> showDefault <> value "/run/postgresql" <> help "Host for the metadata database connection")
53-
<*> strOption (long "db-port" <> metavar "DB_PORT" <> showDefault <> value 5432 <> help "Port for the metadata database connection")
53+
<*> option auto (long "db-port" <> metavar "DB_PORT" <> showDefault <> value 5432 <> help "Port for the metadata database connection")
5454
<*> strOption (long "db-table" <> metavar "DB_TABLE" <> showDefault <> value "metadata" <> help "Table in the database to store metadata")
5555
<*> option auto (long "db-conns" <> metavar "INT" <> showDefault <> value 1 <> help "Number of connections to open to the database")
5656
<*> strOption (long "git-url" <> metavar "GIT_URL" <> help "URL of the metadata registry git repository")

0 commit comments

Comments
 (0)