Skip to content

Commit

Permalink
feed dify v0.14.2
Browse files Browse the repository at this point in the history
  • Loading branch information
lovehunter9 committed Dec 30, 2024
1 parent ef3bbba commit 520f3f9
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions gateway/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -63,15 +63,12 @@ func Start(ctx *cli.Context) {
//inotify.WatchPath(inotify.WatchDir)
//inotify.ListApp()

// 初始化 PathToDatasetMap
inotify.InitializePathToDatasetMap(inotify.WatchDir, dify.DatasetId)

inotify.WatchPath(inotify.PathToDatasetMap)

// 创建 HTTP 服务器
HTTPServer = http_server.NewServer()

// 启动服务器
err := HTTPServer.Start(":6317")
if err != nil {
log.Fatal(err)
Expand All @@ -80,8 +77,7 @@ func Start(ctx *cli.Context) {
}

func main() {
// 启动定时执行逻辑的goroutine
go dify.StartScheduledExecution()
//go dify.StartScheduledExecution()

if err := app.Run(os.Args); err != nil {
fmt.Fprintln(os.Stderr, err)
Expand Down

0 comments on commit 520f3f9

Please sign in to comment.