Skip to content

Commit

Permalink
fix linting
Browse files Browse the repository at this point in the history
  • Loading branch information
labkode committed Apr 17, 2024
1 parent 3b7731d commit a9c87d2
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions internal/serverless/services/notifications/notifications.go
Original file line number Diff line number Diff line change
Expand Up @@ -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"`
Expand Down
2 changes: 1 addition & 1 deletion pkg/notification/notificationhelper/notificationhelper.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit a9c87d2

Please sign in to comment.