Skip to content

Commit

Permalink
update uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
wenweihu86 committed Jul 12, 2018
1 parent f3f52c8 commit eb1cb42
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions core/search_handler.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ import (
"fmt"
"bytes"
"encoding/base64"
"github.com/satori/go.uuid"
uuid2 "github.com/google/uuid"
)

func SearchHandler(ctx *fasthttp.RequestCtx) {
Expand Down Expand Up @@ -56,7 +56,7 @@ func SearchHandler(ctx *fasthttp.RequestCtx) {
}

// searchId
uuid, err := uuid.NewV4()
uuid := uuid2.New()
if err != nil {
AdServerLog.Warn("uuid NewV4 failed")
req.SearchId = string(rand.Uint64())
Expand Down
2 changes: 1 addition & 1 deletion glide.yaml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
package: github.com/wenweihu86/ad-server
import:
- package: github.com/ibbd-dev/go-async-log
- package: github.com/satori/go.uuid
- package: github.com/google/uuid
- package: github.com/spf13/viper
- package: golang.org/x/sys
subpackages:
Expand Down

0 comments on commit eb1cb42

Please sign in to comment.