fix: deprecate skyring/uuid and use maintained google/uuid (#9340)

This commit is contained in:
Harshavardhana
2020-04-14 02:40:05 -07:00
committed by GitHub
parent d079adc167
commit 9054ce73b2
7 changed files with 45 additions and 228 deletions

View File

@@ -23,9 +23,9 @@ import (
"sync/atomic"
"time"
"github.com/google/uuid"
"github.com/minio/minio/pkg/event"
xnet "github.com/minio/minio/pkg/net"
"github.com/skyrings/skyring-common/tools/uuid"
)
// HTTPClientTarget - HTTP client target.
@@ -134,12 +134,12 @@ func (target *HTTPClientTarget) Close() error {
}
func getNewUUID() (string, error) {
uuid, err := uuid.New()
u, err := uuid.NewRandom()
if err != nil {
return "", err
}
return uuid.String(), nil
return u.String(), nil
}
// NewHTTPClientTarget - creates new HTTP client target.