diff --git a/.env b/.env index ab2497a..cf0e032 100644 --- a/.env +++ b/.env @@ -1,9 +1,9 @@ # [Redis] -REDIS_ADDR=127.0.0.1:63791 -REDIS_PASSWORD=xH5FRfKizaDpJR4H +REDIS_ADDR=127.0.0.1:6379 +REDIS_PASSWORD=redis_Pa2Y7J # [Mysql] -DB_DSN=root:root@tcp(localhost:3310)/z_xk?charset=utf8mb4&parseTime=True&loc=Local +DB_DSN=root:root@tcp(localhost:3306)/z_xk?charset=utf8mb4&parseTime=True&loc=Local DB_HOST=127.0.0.1 DB_PORT=3306 DB_USER=root diff --git a/main.go b/main.go index 96a77f5..df67223 100644 --- a/main.go +++ b/main.go @@ -2,8 +2,6 @@ package main import ( "flag" - "gorm.io/driver/mysql" - "gorm.io/gorm" "log" "os" "runtime/debug" @@ -12,6 +10,9 @@ import ( "xk-websocket/route" "xk-websocket/utils" + "gorm.io/driver/mysql" + "gorm.io/gorm" + "github.com/gin-gonic/gin" )