fix: 添加超时控制,

每个用户三十分钟未完成学习自动关闭,防止内存泄漏
This commit is contained in:
johlanse 2021-12-07 10:01:28 +08:00
parent 466ffc2a42
commit e134c304e6
1 changed files with 1 additions and 1 deletions

View File

@ -303,7 +303,7 @@ func study(bot *Telegram, args []string) {
}
},
}
timer := time.After(time.Minute * 1)
timer := time.After(time.Minute * 30)
c := make(chan int, 1)
go func() {
u := uuid.New().String()