Skip to content

Commit

Permalink
fix concourse linter issues
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidSubiros committed Feb 27, 2023
1 parent d7c9ff3 commit e0b85b2
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
7 changes: 7 additions & 0 deletions service/interfaces.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"net/http"

"github.com/ONSdigital/dp-healthcheck/healthcheck"
kafka "github.com/ONSdigital/dp-kafka/v3"
)

//go:generate moq -out mock/server.go -pkg mock . HTTPServer
Expand All @@ -24,3 +25,9 @@ type HealthChecker interface {
AddAndGetCheck(name string, checker healthcheck.Checker) (check *healthcheck.Check, err error)
Subscribe(s healthcheck.Subscriber, checks ...*healthcheck.Check)
}

// kafkaConsumerGroup is an alias to dp-kafka IConsumerGroup interface
type kafkaConsumerGroup kafka.IConsumerGroup

// kafkaProducer is an alias to dp-kafka IProducer interface
type kafkaProducer kafka.IProducer
5 changes: 2 additions & 3 deletions service/service.go
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import (
"context"
"fmt"

kafka "github.com/ONSdigital/dp-kafka/v3"
"github.com/ONSdigital/dp-search-data-extractor/clients"
"github.com/ONSdigital/dp-search-data-extractor/config"
"github.com/ONSdigital/dp-search-data-extractor/handler"
Expand All @@ -18,8 +17,8 @@ type Service struct {
Cfg *config.Config
Server HTTPServer
HealthCheck HealthChecker
Consumer kafka.IConsumerGroup
Producer kafka.IProducer
Consumer kafkaConsumerGroup
Producer kafkaProducer
ZebedeeCli clients.ZebedeeClient
DatasetCli clients.DatasetClient
}
Expand Down

0 comments on commit e0b85b2

Please sign in to comment.