Skip to content

Commit

Permalink
chore: move to github.com/gofrs/uuid
Browse files Browse the repository at this point in the history
  • Loading branch information
primalmotion committed Oct 30, 2018
1 parent 2f175fc commit aa36baf
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 8 deletions.
4 changes: 0 additions & 4 deletions Gopkg.toml
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
[[constraint]]
name = "github.com/satori/go.uuid"
version = "v1.2.0"

[prune]
go-tests = true
unused-packages = true
4 changes: 2 additions & 2 deletions manipmemory/manipulator.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,8 @@ import (
"reflect"
"sync"

"github.com/gofrs/uuid"
memdb "github.com/hashicorp/go-memdb"
uuid "github.com/satori/go.uuid"
"go.aporeto.io/elemental"
"go.aporeto.io/manipulate"
)
Expand Down Expand Up @@ -103,7 +103,7 @@ func (s *memdbManipulator) Create(mctx manipulate.Context, objects ...elemental.

for _, object := range objects {

object.SetIdentifier(uuid.NewV4().String())
object.SetIdentifier(uuid.Must(uuid.NewV4()).String())

if err := txn.Insert(object.Identity().Category, object); err != nil {
return manipulate.NewErrCannotExecuteQuery(err.Error())
Expand Down
4 changes: 2 additions & 2 deletions transaction.go
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package manipulate

import uuid "github.com/satori/go.uuid"
import "github.com/gofrs/uuid"

// TransactionID is the type used to define a transcation ID of a store
type TransactionID string

// NewTransactionID returns a new transaction ID.
func NewTransactionID() TransactionID {

return TransactionID(uuid.NewV4().String())
return TransactionID(uuid.Must(uuid.NewV4()).String())
}

0 comments on commit aa36baf

Please sign in to comment.