Skip to content

Commit

Permalink
Change uuid dependency (#181)
Browse files Browse the repository at this point in the history
  • Loading branch information
Jo-IE authored Feb 13, 2020
1 parent 226de5b commit 3cb02af
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
4 changes: 2 additions & 2 deletions api/middleware.go
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@ import (
"github.com/DataDog/datadog-go/statsd"
"github.com/MEDIGO/laika/store"
log "github.com/Sirupsen/logrus"
"github.com/google/uuid"
"github.com/labstack/echo"
"github.com/labstack/echo/middleware"
"github.com/satori/go.uuid"
"golang.org/x/crypto/bcrypt"
)

Expand All @@ -31,7 +31,7 @@ func StateMiddleware(store store.Store) echo.MiddlewareFunc {
func TraceMiddleware() echo.MiddlewareFunc {
return func(next echo.HandlerFunc) echo.HandlerFunc {
return func(c echo.Context) error {
if id, err := uuid.NewV4(); err == nil {
if id, err := uuid.NewRandom(); err == nil {
c.Set("request_id", id.String())
}
return next(c)
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -9,13 +9,13 @@ require (
github.com/davecgh/go-spew v1.1.1
github.com/dgrijalva/jwt-go v3.2.0+incompatible
github.com/go-sql-driver/mysql v1.3.1-0.20180308100310-1a676ac6e4dc
github.com/google/uuid v1.1.1
github.com/labstack/echo v3.3.4+incompatible
github.com/labstack/gommon v0.2.2-0.20180316174944-3bc2d333a4c3
github.com/mattn/go-colorable v0.1.0
github.com/mattn/go-isatty v0.0.4
github.com/pmezard/go-difflib v1.0.0
github.com/rubenv/sql-migrate v0.0.0-20180217203553-081fe17d19ff
github.com/satori/go.uuid v1.2.1-0.20180103174451-36e9d2ebbde5
github.com/stretchr/testify v1.2.2-0.20180319223459-c679ae2cc0cb
github.com/urfave/cli v1.20.1-0.20180226030253-8e01ec4cd3e2
github.com/valyala/bytebufferpool v1.0.0
Expand Down
2 changes: 2 additions & 0 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,8 @@ github.com/dgrijalva/jwt-go v3.2.0+incompatible h1:7qlOGliEKZXTDg6OTjfoBKDXWrumC
github.com/dgrijalva/jwt-go v3.2.0+incompatible/go.mod h1:E3ru+11k8xSBh+hMPgOLZmtrrCbhqsmaPHjLKYnJCaQ=
github.com/go-sql-driver/mysql v1.3.1-0.20180308100310-1a676ac6e4dc h1:WhgK0tta5yLnKy4x0XbxaxErBoUbEt2ckjRGZGiF7lo=
github.com/go-sql-driver/mysql v1.3.1-0.20180308100310-1a676ac6e4dc/go.mod h1:zAC/RDZ24gD3HViQzih4MyKcchzm+sOG5ZlKdlhCg5w=
github.com/google/uuid v1.1.1 h1:Gkbcsh/GbpXz7lPftLA3P6TYMwjCLYm83jiFQZF/3gY=
github.com/google/uuid v1.1.1/go.mod h1:TIyPZe4MgqvfeYDBFedMoGGpEw/LqOeaOT+nhxU+yHo=
github.com/labstack/echo v3.3.4+incompatible h1:83oKvzg2Fa6PN1pQfsUxlfR4MiSjsFzyxbEXKzsE0cQ=
github.com/labstack/echo v3.3.4+incompatible/go.mod h1:0INS7j/VjnFxD4E2wkz67b8cVwCLbBmJyDaka6Cmk1s=
github.com/labstack/gommon v0.2.2-0.20180316174944-3bc2d333a4c3 h1:oaPp0U6xfzrmg9lGhEm1ZkBv6WqTiHkgTPuYM7xhocU=
Expand Down

0 comments on commit 3cb02af

Please sign in to comment.