Skip to content

Commit 0230651

Browse files
committed
Removed unused injector
1 parent 30b65c4 commit 0230651

File tree

22 files changed

+18
-939
lines changed

22 files changed

+18
-939
lines changed

app/auth/injector.go

Lines changed: 0 additions & 18 deletions
This file was deleted.

app/auth/middleware.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -92,10 +92,10 @@ func (m Middleware) JWTHandler(next http.Handler) http.Handler {
9292
return
9393
}
9494

95-
serviceName, serviceId := m.Service(claims)
95+
serviceName, serviceID := m.Service(claims)
9696
r = r.WithContext(appContext.NewContext(r.Context(), appContext.Mapping{
9797
Subject: subject,
98-
ServiceId: serviceId,
98+
ServiceId: serviceID,
9999
ServiceName: serviceName,
100100
}))
101101

app/auth/wire_gen.go

Lines changed: 0 additions & 95 deletions
This file was deleted.

app/config/wire_gen.go

Lines changed: 2 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/dataloader/dataloader.go

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,12 @@ func LoaderMiddleware(next http.Handler) http.Handler {
3434
maxBatch: 100,
3535
fetch: func(keys []int) ([][]*domain.ProductItem, []error) {
3636
fmt.Println("ProductItems Start Fetch")
37-
var keySql []string
37+
var keySQL []string
3838
for _, key := range keys {
39-
keySql = append(keySql, strconv.Itoa(key))
39+
keySQL = append(keySQL, strconv.Itoa(key))
4040
}
4141

42-
fmt.Printf("SELECT * FROM product_items WHERE product_id IN (%s)\n", strings.Join(keySql, ","))
42+
fmt.Printf("SELECT * FROM product_items WHERE product_id IN (%s)\n", strings.Join(keySQL, ","))
4343
time.Sleep(5 * time.Millisecond)
4444

4545
productItems := make([][]*domain.ProductItem, len(keys))

app/db/repo/injector.go

Lines changed: 0 additions & 17 deletions
This file was deleted.

app/db/repo/wire_gen.go

Lines changed: 0 additions & 111 deletions
This file was deleted.

app/db/wire_gen.go

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

app/entrypoint/entrypoint.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ func Viper() *viper.Viper {
3535
return vi
3636
}
3737

38-
// Initialize returns instance of entry point singleton manager
38+
// Initialize returns instance of entry point singleton manager, workDir uses to attach templates
3939
func Initialize(workDir string, v *viper.Viper) (*EntryPoint, error) {
4040
mu.Lock()
4141
defer mu.Unlock()

app/graphql/injector.go

Lines changed: 0 additions & 20 deletions
This file was deleted.

0 commit comments

Comments
 (0)