Switch to google/uuid from satori/go.uuid (#2852)

Signed-off-by: Sanket Sudake <sanketsudake@gmail.com>
This commit is contained in:
Sanket Sudake
2023-10-17 12:19:17 +05:30
committed by GitHub
parent 7b21fbc199
commit c6329ee3db
20 changed files with 58 additions and 124 deletions
+3 -7
View File
@@ -19,13 +19,12 @@ import (
"bytes"
"context"
"errors"
"fmt"
"net/http"
"net/url"
"os"
"time"
uuid "github.com/satori/go.uuid"
"github.com/fission/fission/pkg/utils/uuid"
)
const (
@@ -49,10 +48,7 @@ type (
)
func NewTracker() (*Tracker, error) {
id, err := uuid.NewV4()
if err != nil {
return nil, fmt.Errorf("tracker.NewTracker: error generating UUID: %w", err)
}
id := uuid.NewString()
gaTrackingID := os.Getenv(GA_TRACKING_ID)
if gaTrackingID == "" {
@@ -66,7 +62,7 @@ func NewTracker() (*Tracker, error) {
tracker := &Tracker{
gaPropertyID: gaTrackingID,
cid: id.String(),
cid: id,
gaAPIURL: gaAPIURL,
}
return tracker, nil