lijian 1 年之前
父節點
當前提交
8ebb03a6be
共有 2 個文件被更改,包括 2 次插入2 次删除
  1. 1 1
      pkg/token/token.go
  2. 1 1
      pkg/utils/util.go

+ 1 - 1
pkg/token/token.go

@@ -19,7 +19,7 @@ type Helper struct {
 }
 
 func NewHelper(host string, port, db int) *Helper {
-	gredis.SetConfig(gredis.Config{
+	gredis.SetConfig(&gredis.Config{
 		Host:      host,
 		Port:      port,
 		Db:        db,

+ 1 - 1
pkg/utils/util.go

@@ -47,6 +47,6 @@ func Exists(filename string) (bool, error) {
 
 // UUID uuid
 func UUID() string {
-	s, _ := uuid.NewV4()
+	s := uuid.NewV4()
 	return s.String()
 }