Skip to content

Commit

Permalink
Merge pull request #10 from hellofresh/patch/one-uuid-lib-for-all
Browse files Browse the repository at this point in the history
Use gofrs uuid lib instead of pborman
  • Loading branch information
vgarvardt authored Jan 30, 2019
2 parents fc38f95 + 470e269 commit 164fd82
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
8 changes: 4 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,10 @@ services:
- docker

go:
- 1.6
- 1.7
- 1.8
- master
- "1.9"
- "1.10"
- "1.11"
- "stable"

install:
- go get -v -d
Expand Down
4 changes: 2 additions & 2 deletions aggregate_root.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ package goengine
import (
"fmt"

"github.com/gofrs/uuid"
"github.com/hellofresh/goengine/reflection"
"github.com/pborman/uuid"
)

type AggregateRoot interface {
Expand All @@ -24,7 +24,7 @@ type AggregateRootBased struct {

// NewAggregateRootBased constructor
func NewAggregateRootBased(source interface{}) *AggregateRootBased {
return NewEventSourceBasedWithID(source, uuid.New())
return NewEventSourceBasedWithID(source, uuid.Must(uuid.NewV4()).String())
}

// NewEventSourceBasedWithID constructor
Expand Down

0 comments on commit 164fd82

Please sign in to comment.