Skip to content

Commit 47fd617

Browse files
committed
Use gofrs uuid lib instead of pborman
1 parent fc38f95 commit 47fd617

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

aggregate_root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,8 @@ package goengine
33
import (
44
"fmt"
55

6+
"github.com/gofrs/uuid"
67
"github.com/hellofresh/goengine/reflection"
7-
"github.com/pborman/uuid"
88
)
99

1010
type AggregateRoot interface {
@@ -24,7 +24,7 @@ type AggregateRootBased struct {
2424

2525
// NewAggregateRootBased constructor
2626
func NewAggregateRootBased(source interface{}) *AggregateRootBased {
27-
return NewEventSourceBasedWithID(source, uuid.New())
27+
return NewEventSourceBasedWithID(source, uuid.Must(uuid.NewV4()).String())
2828
}
2929

3030
// NewEventSourceBasedWithID constructor

0 commit comments

Comments
 (0)