Skip to content
Snippets Groups Projects
Commit 5a4ab10d authored by Rohith's avatar Rohith
Browse files

- fixing up the dependencies

parent 59fe66e8
No related branches found
No related tags found
No related merge requests found
......@@ -83,12 +83,6 @@
packages = ["proto"]
revision = "1643683e1b54a9e88ad26d98f81400c8c9d9f4f9"
[[projects]]
name = "github.com/google/uuid"
packages = ["."]
revision = "064e2069ce9c359c118179501254f67d7d37ba24"
version = "0.2"
[[projects]]
name = "github.com/jonboulle/clockwork"
packages = ["."]
......@@ -146,6 +140,12 @@
revision = "8dd4211afb5d08dbb39a533b9bb9e4b486351df6"
version = "v1.1"
[[projects]]
name = "github.com/satori/go.uuid"
packages = ["."]
revision = "f58768cc1a7a7e77a3bd49e98cdd21419399b6a3"
version = "v1.2.0"
[[projects]]
name = "github.com/stretchr/testify"
packages = [
......@@ -246,6 +246,6 @@
[solve-meta]
analyzer-name = "dep"
analyzer-version = 1
inputs-digest = "417f80c4b978ef6044e98c07cae1c0a72869108028ea5bc22305a8c1e7312acb"
inputs-digest = "c239d30032133a01b89a8a62bd3abecf47284348176c0e9e2f295f9d65f46f55"
solver-name = "gps-cdcl"
solver-version = 1
......@@ -72,12 +72,7 @@ func (r *oauthProxy) requestIDMiddleware(header string) func(http.Handler) http.
return func(next http.Handler) http.Handler {
return http.HandlerFunc(func(w http.ResponseWriter, req *http.Request) {
if v := req.Header.Get(header); v == "" {
uid, err := uuid.NewV1()
if err != nil {
r.log.Error("failed to generatet correlation id for request", zap.Error(err))
} else {
req.Header.Set(header, uid.String())
}
req.Header.Set(header, uuid.NewV1().String())
}
next.ServeHTTP(w, req)
......
......@@ -67,7 +67,7 @@ func TestDecodeKeyPairs(t *testing.T) {
func BenchmarkUUID(b *testing.B) {
for n := 0; n < b.N; n++ {
s, _ := uuid.NewV1()
s := uuid.NewV1()
s.String()
}
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment