From 6bd3dc39b25ba6f37ba4c15867efb8a5b04bbea7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Quentin=20Guid=C3=A9e?= Date: Sun, 10 Sep 2023 20:00:15 -0400 Subject: [PATCH] Remove vertex-core-golang dependency --- go.mod | 1 - go.sum | 2 -- services/proxy.go | 2 -- 3 files changed, 5 deletions(-) diff --git a/go.mod b/go.mod index 8dbdbf73..628c6b43 100644 --- a/go.mod +++ b/go.mod @@ -17,7 +17,6 @@ require ( github.com/google/uuid v1.3.1 github.com/pkg/errors v0.9.1 github.com/stretchr/testify v1.8.4 - github.com/vertex-center/vertex-core-golang v0.0.0-20230423023245-a01db2466031 github.com/vertex-center/vlog v1.0.1 golang.org/x/exp v0.0.0-20230801115018-d63ba01acd4b gopkg.in/yaml.v2 v2.4.0 diff --git a/go.sum b/go.sum index 8d3215cf..eafd32d3 100644 --- a/go.sum +++ b/go.sum @@ -213,8 +213,6 @@ github.com/ugorji/go/codec v1.1.7/go.mod h1:Ax+UKWsSmolVDwsd+7N3ZtXu+yMGCf907BLY github.com/ugorji/go/codec v1.2.7/go.mod h1:WGN1fab3R1fzQlVQTkfxVtIBhWDRqOviHU95kRgeqEY= github.com/ugorji/go/codec v1.2.9 h1:rmenucSohSTiyL09Y+l2OCk+FrMxGMzho2+tjr5ticU= github.com/ugorji/go/codec v1.2.9/go.mod h1:UNopzCgEMSXjBc6AOMqYvWC1ktqTAfzJZUZgYf6w6lg= -github.com/vertex-center/vertex-core-golang v0.0.0-20230423023245-a01db2466031 h1:og0cF2u0K3n9628dEwi6QM5u5AcPwO4XKgp9ndHlfb0= -github.com/vertex-center/vertex-core-golang v0.0.0-20230423023245-a01db2466031/go.mod h1:LW8yo6JkIKZxVJKhgbLsf1CAocMWnDYz1luF04juh/g= github.com/vertex-center/vlog v1.0.1 h1:fa2bBD1h4T3+KNQ5jphuQ/Fb9eRj1uC28n/xYBFubRw= github.com/vertex-center/vlog v1.0.1/go.mod h1:M52swDkdWWu3VWY2Cj+mqc64Nzx33sDukAgrQ3HA95c= github.com/xanzy/ssh-agent v0.3.3 h1:+/15pJfg/RsTxqYcX6fHqOXZwwMP+2VyYWJeWM2qQFM= diff --git a/services/proxy.go b/services/proxy.go index 59b5d6e6..9e8b4826 100644 --- a/services/proxy.go +++ b/services/proxy.go @@ -10,7 +10,6 @@ import ( "github.com/gin-contrib/cors" "github.com/gin-gonic/gin" "github.com/google/uuid" - "github.com/vertex-center/vertex-core-golang/router/middleware" "github.com/vertex-center/vertex/pkg/ginutils" "github.com/vertex-center/vertex/pkg/log" "github.com/vertex-center/vertex/types" @@ -42,7 +41,6 @@ func (s *ProxyService) Start() error { r.Use(cors.Default()) r.Use(ginutils.Logger("PROX")) r.Use(gin.Recovery()) - r.Use(middleware.ErrorMiddleware()) r.Any("/*path", s.handleProxy) s.server = &http.Server{