From a9c87d260919ae0d05af66494a3af9c6ee53cc40 Mon Sep 17 00:00:00 2001 From: Hugo Gonzalez Labrador Date: Wed, 17 Apr 2024 14:28:00 +0200 Subject: [PATCH] fix linting --- internal/serverless/services/notifications/notifications.go | 4 ++-- pkg/notification/notificationhelper/notificationhelper.go | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/internal/serverless/services/notifications/notifications.go b/internal/serverless/services/notifications/notifications.go index 512b5e220d..05cb995093 100644 --- a/internal/serverless/services/notifications/notifications.go +++ b/internal/serverless/services/notifications/notifications.go @@ -45,9 +45,9 @@ import ( type config struct { NatsAddress string `docs:";The NATS server address." mapstructure:"nats_address"` - NatsToken string `docs:";The token to authenticate against the NATS server" mapstructure:"nats_token"` + NatsToken string `docs:";The token to authenticate against the NATS server" mapstructure:"nats_token"` NatsPrefix string `docs:"reva-notifications;The notifications NATS stream." mapstructure:"nats_prefix"` - HandlerConf map[string]map[string]interface{} `docs:"nil;Settings for the different notification handlers." mapstructure:"handlers"` + HandlerConf map[string]map[string]interface{} `docs:"nil;Settings for the different notification handlers." mapstructure:"handlers"` GroupingInterval int `docs:"60;Time in seconds to group incoming notification triggers" mapstructure:"grouping_interval"` GroupingMaxSize int `docs:"100;Maximum number of notifications to group" mapstructure:"grouping_max_size"` StorageDriver string `docs:"mysql;The driver used to store notifications" mapstructure:"storage_driver"` diff --git a/pkg/notification/notificationhelper/notificationhelper.go b/pkg/notification/notificationhelper/notificationhelper.go index 36f54ca150..e17f6abc94 100644 --- a/pkg/notification/notificationhelper/notificationhelper.go +++ b/pkg/notification/notificationhelper/notificationhelper.go @@ -47,7 +47,7 @@ type Config struct { NatsAddress string `docs:";The NATS server address." mapstructure:"nats_address"` NatsToken string `docs:";The token to authenticate against the NATS server" mapstructure:"nats_token"` NatsStream string `docs:"reva-notifications;The notifications NATS stream." mapstructure:"nats_stream"` - Templates map[string]interface{} `docs:"nil;Notification templates for the service." mapstructure:"templates"` + Templates map[string]interface{} `docs:"nil;Notification templates for the service." mapstructure:"templates"` } func defaultConfig() *Config {