This commit is contained in:
@@ -2,6 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"context"
|
||||
"log"
|
||||
|
||||
"github.com/JscorpTech/notification/internal/consumer"
|
||||
"github.com/JscorpTech/notification/internal/redis"
|
||||
@@ -12,7 +13,7 @@ var ctx = context.Background()
|
||||
|
||||
func main() {
|
||||
if err := godotenv.Load(); err != nil {
|
||||
panic(err)
|
||||
log.Println(".env not load")
|
||||
}
|
||||
redis.InitRedis()
|
||||
notification := consumer.NewNotificationConsumer(ctx)
|
||||
|
||||
Reference in New Issue
Block a user