diff --git a/src/modules/transfer/http/routes/query_router.go b/src/modules/transfer/http/routes/query_router.go index d8f4f811..8f711382 100644 --- a/src/modules/transfer/http/routes/query_router.go +++ b/src/modules/transfer/http/routes/query_router.go @@ -12,10 +12,6 @@ import ( ) func QueryData(c *gin.Context) { - // TODO 这里要改成老版本的实现 -} - -func QueryDataV2(c *gin.Context) { stats.Counter.Set("data.api.qp10s", 1) dataSource, err := backend.GetDataSourceFor("") diff --git a/src/modules/transfer/http/routes/routes.go b/src/modules/transfer/http/routes/routes.go index f95fe927..fc27f3de 100644 --- a/src/modules/transfer/http/routes/routes.go +++ b/src/modules/transfer/http/routes/routes.go @@ -30,10 +30,5 @@ func Config(r *gin.Engine) { index.POST("/counter/fullmatch", GetIndexByFullTags) } - v2 := r.Group("/api/transfer/v2") - { - v2.POST("/data", QueryDataV2) - } - pprof.Register(r, "/api/transfer/debug/pprof") }