Skip to content

Commit

Permalink
Fixed linting
Browse files Browse the repository at this point in the history
  • Loading branch information
jessjenkins committed Aug 18, 2023
1 parent 08efb6c commit 387ebd6
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
7 changes: 3 additions & 4 deletions task/reindex.go
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,14 @@ import (
extractorModels "github.com/ONSdigital/dp-search-data-extractor/models"
importerModels "github.com/ONSdigital/dp-search-data-importer/models"
"github.com/ONSdigital/dp-search-data-importer/transform"
"github.com/ONSdigital/dp-search-reindex-batch/config"
"github.com/ONSdigital/log.go/v2/log"
"github.com/elastic/go-elasticsearch/v7/esutil"

"github.com/ONSdigital/dp-search-reindex-batch/config"
)

const (
defaultChannelBuffer = 20
aws_es_service = "es"
awsESService = "es"
)

// DatasetEditionMetadata holds the necessary information for a dataset edition, plus isBasedOn
Expand Down Expand Up @@ -68,7 +67,7 @@ func reindex(ctx context.Context, cfg *config.Config) error {
esHTTPClient := hcClienter
if cfg.SignESRequests {
log.Info(ctx, "use a signing roundtripper client")
awsSignerRT, err := awsauth.NewAWSSignerRoundTripper("", "", cfg.AwsRegion, aws_es_service,
awsSignerRT, err := awsauth.NewAWSSignerRoundTripper("", "", cfg.AwsRegion, awsESService,
awsauth.Options{TlsInsecureSkipVerify: cfg.AwsSecSkipVerify})
if err != nil {
log.Fatal(ctx, "Failed to create http signer", err)
Expand Down
1 change: 1 addition & 0 deletions task/task.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ package task

import (
"context"

"github.com/ONSdigital/dp-search-reindex-batch/config"
)

Expand Down

0 comments on commit 387ebd6

Please sign in to comment.