mirror of
https://github.com/openimsdk/open-im-server.git
synced 2026-04-28 14:29:19 +08:00
config path
This commit is contained in:
@@ -2,6 +2,7 @@ package main
|
||||
|
||||
import (
|
||||
"OpenIM/internal/task"
|
||||
"OpenIM/pkg/common/config"
|
||||
"flag"
|
||||
"fmt"
|
||||
"time"
|
||||
@@ -11,7 +12,9 @@ func main() {
|
||||
var userID = flag.String("user_id", "", "userID to clear msg and reset seq")
|
||||
var superGroupID = flag.String("super_group_id", "", "superGroupID to clear msg and reset seq")
|
||||
var fixAllSeq = flag.Bool("fix_all_seq", false, "fix seq")
|
||||
var configPath = flag.String("config_path", "../config/", "config folder")
|
||||
flag.Parse()
|
||||
config.InitConfig(*configPath)
|
||||
fmt.Println(time.Now(), "start cronTask", *userID, *superGroupID)
|
||||
task.FixSeq(*userID, *superGroupID, *fixAllSeq)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user