Commit caca95de authored by hujiebin's avatar hujiebin

Update main.go

parent 379a33a6
...@@ -568,6 +568,13 @@ func main() { ...@@ -568,6 +568,13 @@ func main() {
RedisClient: rdb, RedisClient: rdb,
MysqlDB: db, MysqlDB: db,
} }
go func() {
for {
// 同步区域
userManager.SyncArea()
time.Sleep(time.Minute * 15)
}
}()
termManager = &manager.TerminalManager{ termManager = &manager.TerminalManager{
Ctx: context.Background(), Ctx: context.Background(),
RedisClient: rdb, RedisClient: rdb,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment