From 1dd3f19ee381d3a3554828a37282fd75ba3073ee Mon Sep 17 00:00:00 2001 From: Lunny Xiao Date: Thu, 18 Jun 2020 17:18:44 +0800 Subject: Use google/uuid to instead satori/go.uuid (#11943) Co-authored-by: Lauris BH --- models/webhook.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'models/webhook.go') 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 -- cgit v1.2.3