Skip to content
Snippets Groups Projects

Update firebase error handling for more info & better handling

Merged Jonah Husson requested to merge hotfix/firebase-handling into dev
Files
9
+ 9
6
@@ -71,14 +71,17 @@ var rootCmd = &cobra.Command{
}
viper.SetDefault("notificationRate", 30)
viper.SetDefault("notificationsPerBatch", 20)
// This is set to approx. 90% of the stated limit (4096)
viper.SetDefault("maxNotificationPayload", 3686)
// Populate params
NotificationParams = notifications.Params{
Address: localAddress,
CertPath: certPath,
KeyPath: keyPath,
FBCreds: fbCreds,
NotificationRate: viper.GetInt("notificationRate"),
NotificationsPerBatch: viper.GetInt("notificationsPerBatch"),
Address: localAddress,
CertPath: certPath,
KeyPath: keyPath,
FBCreds: fbCreds,
NotificationRate: viper.GetInt("notificationRate"),
NotificationsPerBatch: viper.GetInt("notificationsPerBatch"),
MaxNotificationPayload: viper.GetInt("maxNotificationPayload"),
APNS: notifications.APNSParams{
KeyPath: apnsKeyPath,
KeyID: viper.GetString("apnsKeyID"),
Loading