mirror of
https://github.com/Luzifer/ots.git
synced 2025-07-30 17:58:56 -04:00
Replace uuid library, update vendors
Signed-off-by: Knut Ahlers <knut@ahlers.me>
This commit is contained in:
parent
6092d335ad
commit
38b1cd09f4
273 changed files with 35629 additions and 9122 deletions
|
@ -6,7 +6,7 @@ import (
|
|||
"strconv"
|
||||
"strings"
|
||||
|
||||
"github.com/satori/uuid"
|
||||
"github.com/gofrs/uuid"
|
||||
log "github.com/sirupsen/logrus"
|
||||
"github.com/xuyu/goredis"
|
||||
)
|
||||
|
@ -88,7 +88,7 @@ func (s storageRedis) redisKey() string {
|
|||
}
|
||||
|
||||
func (s storageRedis) Create(secret string) (string, error) {
|
||||
id := uuid.NewV4().String()
|
||||
id := uuid.Must(uuid.NewV4()).String()
|
||||
err := s.writeKey(id, secret)
|
||||
|
||||
return id, err
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue