Skip to content
Snippets Groups Projects
Commit d67bbe77 authored by Jake Taylor's avatar Jake Taylor :lips:
Browse files

revert bad fix

parent bec9b203
Branches
Tags
No related merge requests found
......@@ -57,16 +57,10 @@ var rootCmd = &cobra.Command{
certPath := viper.GetString("certPath")
keyPath := viper.GetString("keyPath")
localAddress := fmt.Sprintf("0.0.0.0:%d", viper.GetInt("port"))
fbCreds, err := utils.ExpandPath(
viper.GetString("firebaseCredentialsPath"))
fbCreds, err := utils.ExpandPath(viper.GetString("firebaseCredentialsPath"))
if err != nil {
jww.FATAL.Panicf("Unable to expand credentials path: %+v", err)
}
permissioningCert, err := utils.ExpandPath(
viper.GetString("permissioningCertPath"))
if err != nil {
jww.FATAL.Panicf("Unable to expand permissioning certificate path: %+v", err)
}
// Populate params
NotificationParams = notifications.Params{
......@@ -92,8 +86,7 @@ var rootCmd = &cobra.Command{
)
// Set up the notifications server connections
err = setupConnection(impl, permissioningCert,
viper.GetString("permissioningAddress"))
err = setupConnection(impl, viper.GetString("permissioningCertPath"), viper.GetString("permissioningAddress"))
if err != nil {
jww.FATAL.Panicf("Failed to set up connections: %+v", err)
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment