diff options
author | Lunny Xiao <xiaolunwen@gmail.com> | 2020-06-18 17:18:44 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-18 17:18:44 +0800 |
commit | 1dd3f19ee381d3a3554828a37282fd75ba3073ee (patch) | |
tree | f3ef01fcc5825e28b2e57d8da8c491555ef15fe4 /models/webhook.go | |
parent | 03ba974481296b76f87cbd756e41ecf5be9d006b (diff) | |
download | gitea-1dd3f19ee381d3a3554828a37282fd75ba3073ee.tar.gz gitea-1dd3f19ee381d3a3554828a37282fd75ba3073ee.zip |
Use google/uuid to instead satori/go.uuid (#11943)
Co-authored-by: Lauris BH <lauris@nix.lv>
Diffstat (limited to 'models/webhook.go')
-rw-r--r-- | models/webhook.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/webhook.go b/models/webhook.go index 5f3a285691..54cd9b6565 100644 --- a/models/webhook.go +++ b/models/webhook.go @@ -15,7 +15,7 @@ import ( api "code.gitea.io/gitea/modules/structs" "code.gitea.io/gitea/modules/timeutil" - gouuid "github.com/satori/go.uuid" + gouuid "github.com/google/uuid" ) // HookContentType is the content type of a web hook @@ -769,7 +769,7 @@ func createHookTask(e Engine, t *HookTask) error { if err != nil { return err } - t.UUID = gouuid.NewV4().String() + t.UUID = gouuid.New().String() t.PayloadContent = string(data) _, err = e.Insert(t) return err |