Skip to content
This repository has been archived by the owner on Aug 4, 2021. It is now read-only.

Commit

Permalink
update to google uuid package (#4)
Browse files Browse the repository at this point in the history
  • Loading branch information
fzlrhmn committed Oct 9, 2019
1 parent d46a138 commit 673b1f9
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .gitignore
@@ -1,2 +1,2 @@
vendor/
debug_test
debug.test
6 changes: 4 additions & 2 deletions adapter.go
Expand Up @@ -4,14 +4,15 @@ import (
"errors"
"regexp"

"github.com/google/uuid"

"github.com/casbin/casbin/model"
"github.com/casbin/casbin/persist"
"github.com/guregu/dynamo"

"github.com/aws/aws-sdk-go/aws"
"github.com/aws/aws-sdk-go/aws/session"
"github.com/aws/aws-sdk-go/service/dynamodb"
uuid "github.com/satori/go.uuid"
)

type (
Expand Down Expand Up @@ -83,8 +84,9 @@ func (a *Adapter) LoadPolicy(model model.Model) {
}

func savePolicyLine(ptype string, rule []string) CasbinRule {
id := uuid.New().String()
line := CasbinRule{
ID: uuid.NewV4().String(),
ID: id,
}

line.PType = ptype
Expand Down
Binary file removed debug.test
Binary file not shown.

0 comments on commit 673b1f9

Please sign in to comment.