Skip to content

Commit afce648

Browse files
committed
chore: Fix typos.
1 parent a477604 commit afce648

File tree

2 files changed

+11
-6
lines changed

2 files changed

+11
-6
lines changed

internal/config/application.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ type ApplicationConfig struct {
99
Queue QueueConfig
1010
}
1111

12-
//ReadConfig reads configuration from the environment and populate the structure with it
12+
//ReadConfig reads configuration from the environment and populates the structure with it
1313
func ReadConfig() (*ApplicationConfig, error) {
1414
var conf ApplicationConfig
1515
if err := envconfig.Process("", &conf); err != nil {

internal/config/queue.go

Lines changed: 10 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,14 @@ package config
22

33
//QueueConfig queue configuration
44
type QueueConfig struct {
5-
UrlRequestQueue string `default:"data-scraping-asd" envconfig:"URL_REQUEST_QUEUE"` //UrlRequestQueue name to listen to the new events
6-
ScrapingResultQueue string `default:"storage-update-asd" envconfig:"SCRAPING_RESULT_QUEUE"` //Queue name to send processed ApiSpecDoc
7-
NotificationQueue string `default:"gateway-scrape-notifications" envconfig:"NOTIFICATION_QUEUE"` //Queue name to notify a user about error or success (if required)
8-
Url string `default:"amqp://guest:guest@localhost:5672/"` //RabbitMQ url
9-
Concurrency int `default:"30"` //Number of parallel handlers
5+
//UrlRequestQueue name to listen to the new events
6+
UrlRequestQueue string `default:"data-scraping-asd" envconfig:"URL_REQUEST_QUEUE"`
7+
//ScrapingResultQueue represents a queue name to send processed ApiSpecDoc
8+
ScrapingResultQueue string `default:"storage-update-asd" envconfig:"SCRAPING_RESULT_QUEUE"`
9+
//NotificationQueue represents a queue name to notify a user about an error or success (if required)
10+
NotificationQueue string `default:"gateway-scrape-notifications" envconfig:"NOTIFICATION_QUEUE"`
11+
//Url is a RabbitMQ url
12+
Url string `default:"amqp://guest:guest@localhost:5672/"`
13+
//Concurrency represents number of parallel handlers
14+
Concurrency int `default:"30"`
1015
}

0 commit comments

Comments
 (0)