mirror of
https://github.com/infiniflow/ragflow.git
synced 2026-07-28 11:48:10 +08:00
Go: refactor UUID functions (#16695)
As title --------- Signed-off-by: Jin Hai <haijin.chn@gmail.com>
This commit is contained in:
@@ -22,6 +22,7 @@ import (
|
||||
"ragflow/internal/common"
|
||||
"ragflow/internal/dao"
|
||||
"ragflow/internal/entity"
|
||||
"ragflow/internal/utility"
|
||||
"sync"
|
||||
"time"
|
||||
|
||||
@@ -48,7 +49,7 @@ type Syncer struct {
|
||||
func NewSyncer(maxConcurrency int, pollInterval time.Duration) *Syncer {
|
||||
ctx, cancel := context.WithCancel(context.Background())
|
||||
return &Syncer{
|
||||
id: common.GenerateUUID(),
|
||||
id: utility.GenerateUUID(),
|
||||
maxConcurrency: maxConcurrency,
|
||||
pollInterval: pollInterval,
|
||||
ctx: ctx,
|
||||
|
||||
Reference in New Issue
Block a user