From 765dc17d2e2973e5e3f30d5eaa4c9dc673274671 Mon Sep 17 00:00:00 2001 From: Geapefurit <670884108@qq.com> Date: Wed, 22 Nov 2023 15:09:46 +0800 Subject: [PATCH] support auto increment id --- cmd/sphinx-proxy/main.go | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/cmd/sphinx-proxy/main.go b/cmd/sphinx-proxy/main.go index 16aacfd..c116d1e 100644 --- a/cmd/sphinx-proxy/main.go +++ b/cmd/sphinx-proxy/main.go @@ -5,9 +5,9 @@ import ( "os" "github.com/NpoolPlatform/go-service-framework/pkg/app" - "github.com/NpoolPlatform/go-service-framework/pkg/config" "github.com/NpoolPlatform/go-service-framework/pkg/logger" mysqlconst "github.com/NpoolPlatform/go-service-framework/pkg/mysql/const" + redisconst "github.com/NpoolPlatform/go-service-framework/pkg/redis/const" "github.com/NpoolPlatform/sphinx-proxy/pkg/servicename" cli "github.com/urfave/cli/v2" ) @@ -29,7 +29,8 @@ func main() { "./", nil, commands, - config.ServiceNameToNamespace(mysqlconst.MysqlServiceName), + mysqlconst.MysqlServiceName, + redisconst.RedisServiceName, ) if err != nil { logger.Sugar().Errorf("fail to create %v: %v", serviceName, err)