Skip to content

Commit f18c11d

Browse files
committed
Rectify config package import path
1 parent 284445a commit f18c11d

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

service/controller/pdf_generation/register.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@ import (
66
"net/http"
77

88
"github.com/Zomato/espresso/lib/templatestore"
9-
"github.com/Zomato/espresso/service/model"
9+
"github.com/Zomato/espresso/service/internal/pkg/config"
1010
)
1111

1212
type EspressoService struct {
1313
TemplateStorageAdapter *templatestore.StorageAdapter
1414
FileStorageAdapter *templatestore.StorageAdapter
1515
}
1616

17-
func NewEspressoService(config model.Config) (*EspressoService, error) {
17+
func NewEspressoService(config config.Config) (*EspressoService, error) {
1818
templateStorageType := config.TemplateStorageConfig.StorageType
1919

2020
if config.AppConfig.EnableUI && templateStorageType != templatestore.StorageAdapterTypeMySQL {
@@ -48,7 +48,7 @@ func NewEspressoService(config model.Config) (*EspressoService, error) {
4848

4949
return &EspressoService{TemplateStorageAdapter: &templateStorageAdapter, FileStorageAdapter: &fileStorageAdapter}, nil
5050
}
51-
func Register(mux *http.ServeMux, config model.Config) {
51+
func Register(mux *http.ServeMux, config config.Config) {
5252
espressoService, err := NewEspressoService(config)
5353
if err != nil {
5454
log.Fatalf("Failed to initialize PDF service: %v", err)

service/main.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ import (
1111
logger "github.com/Zomato/espresso/lib/logger"
1212
"github.com/Zomato/espresso/lib/workerpool"
1313
"github.com/Zomato/espresso/service/controller/pdf_generation"
14-
"github.com/Zomato/espresso/service/internal/config"
14+
"github.com/Zomato/espresso/service/internal/pkg/config"
1515
"github.com/Zomato/espresso/service/utils"
1616
)
1717

0 commit comments

Comments
 (0)