refactor: migrate config package to pkg directory

This commit is contained in:
Prad Nukala
2024-12-11 12:24:04 -05:00
parent 0502f52ec0
commit d667c3c604
11 changed files with 9 additions and 9 deletions
+2 -2
View File
@@ -4,7 +4,7 @@ import (
"net/http"
"github.com/labstack/echo/v4"
"github.com/onsonr/sonr/internal/gateway/config"
config "github.com/onsonr/sonr/pkg/config/hway"
"google.golang.org/grpc"
)
@@ -25,7 +25,7 @@ func GetClientConn(c echo.Context) (*grpc.ClientConn, error) {
return grpcConn, nil
}
func Middleware(env config.Env) echo.MiddlewareFunc {
func Middleware(env config.Hway) echo.MiddlewareFunc {
return func(next echo.HandlerFunc) echo.HandlerFunc {
return func(c echo.Context) error {
cc := &ClientsContext{Context: c, addr: env.GetSonrGrpcUrl()}